shotgunefx has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w # Example perl 5.6.1 my $string = '012345679ABCDEFGHIJKLMNOPQRSTUV'; print $string,"\n"; my $result = substr($string,2,6) = ''; print $result,"\n"; # Result is 9ABCDE print $string,"\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Bug with substring return value?
by Dog and Pony (Priest) on Apr 13, 2002 at 11:37 UTC | |
by shotgunefx (Parson) on Apr 13, 2002 at 12:44 UTC | |
by Dog and Pony (Priest) on Apr 13, 2002 at 12:54 UTC | |
by shotgunefx (Parson) on Apr 13, 2002 at 14:15 UTC | |
Re: Bug with substring return value?
by Juerd (Abbot) on Apr 13, 2002 at 17:33 UTC | |
by shotgunefx (Parson) on Apr 14, 2002 at 00:08 UTC |