--- "JupiterHost.Net" <[EMAIL PROTECTED]> wrote:
> > Isn't $prev_date assigned to '', and isn't that
>
> It is if you do
> my $prev_date = '';
> but
> my $prev_date;
> it is "uninitialized" as in it hasn't been assigned
> any value incuding
> "empty"
>
> 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!
Denzil
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>