in reply to Re^3: getting a regex to return an array of matches?
in thread getting a regex to return an array of matches?
not following here?
why pre-declare, then use?my $var = $1 if ($filecontents =~ /SOME_REGEX(.*?)$/g); if($var) { ... proceed w/ usage of $var }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: getting a regex to return an array of matches?
by ikegami (Patriarch) on Feb 14, 2006 at 19:03 UTC | |
Re^5: getting a regex to return an array of matches?
by PodMaster (Abbot) on Feb 15, 2006 at 05:13 UTC |
In Section
Seekers of Perl Wisdom