Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: How regex works here?

by bart (Canon)
on Apr 08, 2009 at 09:01 UTC ( [id://756277]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if($line =~ /^(\S+\s+\S+)/) {
        $match = $1;
    }
    
  2. or download this
    ($match) = $line =~ /^(\S+\s+\S+)/;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (10)
As of 2024-04-18 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found