why pre-declare, then use?my $var = $1 if ($filecontents =~ /SOME_REGEX(.*?)$/g); if($var) { ... proceed w/ usage of $var }
In reply to Re^4: getting a regex to return an array of matches?
by rmexico
in thread getting a regex to return an array of matches?
by rmexico
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |