Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: extracting data from an input file and associated errors

by chilledham (Pilgrim)
on Feb 02, 2012 at 23:42 UTC ( #951558=note: print w/ replies, xml ) Need Help??


in reply to extracting data from an input file and associated errors

You need to capture the match you want:
$line =~ m/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\.csv$/g

The match in your first set of parens will be stored in $1, in the second set of parens in $2, and so on.
See perldoc perlretut.


Comment on Re: extracting data from an input file and associated errors
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (17)
As of 2014-07-23 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (150 votes), past polls