Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: a farewell to chopby Aristotle (Chancellor) |
on Sep 12, 2002 at 14:53 UTC ( [id://197240]=note: print w/replies, xml ) | Need Help?? |
You can do better without chop there, though..
print "$_\n" for reverse split //, substr($dna, -10);
And if you need $dna to loose the last characters,
print "$_\n" for reverse split //, substr($dna, -10, 10, '');
Brackets not necessary here, but added for readability.
Makeshifts last the longest.
In Section
Meditations
|
|