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 imbibing at the Monastery: (8)
As of 2014-08-21 05:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls