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 fileby fishbot_v2 (Chaplain) |
on Jul 08, 2005 at 16:30 UTC ( [id://473479]=note: print w/replies, xml ) | Need Help?? |
Capturing doesn't work like that. You are overwriting $1 for each match. Try something like if you want to capture all matches from a /g.
In Section
Seekers of Perl Wisdom
|
|