Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: How do i extract 3 variables from each line in a file, and print them to a new file

by fishbot_v2 (Chaplain)
on Jul 08, 2005 at 16:30 UTC ( [id://473479]=note: print w/replies, xml ) Need Help??


in reply to Re: How do i extract 3 variables from each line in a file, and print them to a new file
in thread How do i extract 3 variables from each line in a file, and print them to a new file

Capturing doesn't work like that. You are overwriting $1 for each match.

Try something like

my @nums = $_ =~ /(\d+)ms/g;
if you want to capture all matches from a /g.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-28 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found