Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Special Variable Pattern Match whilst reading input from a file

by dakkar (Hermit)
on Mar 29, 2003 at 19:53 UTC ( [id://246641]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<CONFIG_FILE>) {
     if (/^frz\s+=\s+(\w+);/) {$bar=$1}
    }
    
  2. or download this
    "abc123def"=~/([a-z]+(\d+)(.*))/;
    print "first: $1\nsecond: $2\nthird: $3\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://246641]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found