Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: extracting data from an input file and associated errors

by chilledham (Friar)
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951558]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-11-22 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (317 votes). Check out past polls.

    Notices?