> -----Original Message-----
> From: todd r wade [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 14, 2002 3:51 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: "lazy" variable declaration
>
> ...
> Your examples are neither equivalent nor dangerous in the context of
> this thread. We are trying to avoid "undefined value..." warnings by
> the use of a variable after a split.
This is one of the reasons I gave up on "-w" a long time ago. You had
to program around the $^%&@ "use of undefined value" warning constantly.
Of course, Perl 5.6 introduced the "no warnings qw(uninitialized);"
construct, which helps that problem, at the expense of some typing...
> ...
> if ( defined($track) and ( $track eq "foo") ) { ....
>
> would be the most prudent IMHO.
ick.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]