![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Applying regex to each line in a record.by choroba (Archbishop) |
on Oct 24, 2020 at 21:46 UTC ( #11123138=note: print w/replies, xml ) | Need Help?? |
> without a regex at all, thanks to the split() function. Note that the first argument to split, even if you write it as ':', is a regex. Only a space is special.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|