Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 cooling their heels in the Monastery: (5)
As of 2014-11-28 01:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (191 votes), past polls