Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: reading a value from a given textby karlgoethebier (Abbot) |
on Apr 07, 2015 at 19:29 UTC ( [id://1122733]=note: print w/replies, xml ) | Need Help?? |
"...a different way of extracting "34"... my $flag = grep { /(34)$/ } split / /, $string; Update: I regret this crap. Had a bad day, Update 2: my $flag = ( ( split / /, $string )[-1] == 34 ); Regards, Karl «The Crux of the Biscuit is the Apostrophe»
In Section
Seekers of Perl Wisdom
|
|