Stuart White wrote: > > --- Rob Dixon <[EMAIL PROTECTED]> wrote: > > > > my $input = " 22 \n"; > > my @list = (2 .. $input); > > print "list first: @list\n"; > > > > **OUTPUT > > > > list first: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 > > 17 18 19 20 21 22 > > > > Does putting a space before and after the last number > do something special?
No, Rob is just demonstrating that the string " 22 \n" when used in a numerical context will be interpreted as the number 22. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>