Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Parsing a line from a line with one line of perl code.by zer (Deacon) |
on Nov 09, 2007 at 00:51 UTC ( [id://649837]=note: print w/replies, xml ) | Need Help?? |
The <DATA> can be replaced with a variable that holds the info. The ($_) is getting the response of the regular expression in list format. So the $1 variable which returns the first group gets placed into $_.
In Section
Seekers of Perl Wisdom
|
|