Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^5: Split and print hash based on regexby AnomalousMonk (Archbishop) |
on Mar 28, 2018 at 15:09 UTC ( [id://1211927]=note: print w/replies, xml ) | Need Help?? |
choroba is not wrong to write here that "... without a capture group in the regex, there's no way to populate $1." But as always with regexes, it's more complicated: Due to the influence of the /g modifier, something is captured, it's just not anything open ... or die "could not open 'UserA$regex.txt' $!"; statement. See Matching in list context in perlop. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|