Compare
 perl -mstrict -we 'my $v;for(1..3) { print
"$v\n";$v++; }'
with
 perl -mstrict -we 'my $v = "";for(1..3) { print
"$v\n";$v++; }'



Hmm, I could swear I read in my manual that perl will
automatically initialize variables.  But, that's
obviously not case, as your example demonstrates.

Thanks for the info!

No problem :)

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to