On Fri, Nov 08, 2002 at 01:39:31AM -0000, Peter Scott wrote:
> In article <C0FD5BECE2F0C84EAA97D7300A500D50046DD0AD@SMILEY>,
>  [EMAIL PROTECTED] (Timothy Johnson) writes:
> >
> >As far as I know, the #1 reason why people declare data structures
> >explicitly is to avoid "uninitialized" messages while using warnings.
> 
> For scalars, sure, although the only time I really find that valid is
> in a case like
> 
>       my $whatzit = '';
>       for (@fuzzbar) { $whatzit .= friggle($_) }

And even then it's not required because ++, +=, --, -= and .= all allow
the LHS to be undefined without providing a warning, because that's such
a common and useful thing to want to do.

(Actually, I'm not sure how comman and useful this is with -- and -=)

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to