Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: matching patterns

by Corion (Patriarch)
on Apr 11, 2006 at 07:02 UTC ( [id://542463]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    die "No data found" unless /...(...)/; 
    my $value = $1;/
    
  2. or download this
    my $value; if (/...(...)/) { $value = $1 };
    
  3. or download this
    ...
        my $port = '<no port found>';
        if ($line =~/(port=([0-9]+))/i) {
            $port= $2;
        };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-23 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found