This doesn't seem to happen on Win32 5.8.4 (AS 810). Which version are you using?
P:\test>perl -wle"sub foo{}; my $s =''; foo( substr $s, 2, 1 );" substr outside of string at -e line 1.
In reply to Re: substr oddity
by BrowserUk
in thread Perl oddities
by brian_d_foy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |