"be consistent" | |
PerlMonks |
Re: reversing substrby chipmunk (Parson) |
on Mar 11, 2002 at 04:43 UTC ( [id://150812]=note: print w/replies, xml ) | Need Help?? |
It's not quite clear what you're trying to do, especially since substr does accept a negative offset. What do you mean when you say "that doesn't work"?
If you want the first two characters of the string, try this: Or, if you want all but the last two characters, try this:
In Section
Seekers of Perl Wisdom
|
|