in reply to Re^2: substr outside of string
in thread substr outside of string
my $s = (length($str) < $index ? substr($str, $index, 1) : '' # or undef, or die, or ... );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: substr outside of string
by hgolden (Pilgrim) on Sep 09, 2006 at 19:29 UTC |