I prefer the 4-arg substr for this case:
Because:my $firstChar= substr($string,0,1,"");
In reply to Re: Chopping the beginning of a string? (4-arg)
by tye
in thread Chopping the beginning of a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |