.
## ## Taking the last N elements off the end of a string ## use strict ; use warnings ; my($s) = '0123456789' ; print substr($s, -5), "\n" ;
In reply to Re: why is substr behaving odd?
by ptkdb
in thread why is substr behaving odd?
by usless_blonde
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |