develooper Front page | perl.perl5.porters | Postings from April 2000

Re: [ID 20000403.009] uninitialised concatenation???

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
April 4, 2000 06:37
Subject:
Re: [ID 20000403.009] uninitialised concatenation???
Message ID:
28158.954855469@chthon
>How about the much less inflamatory, and much more useful:

How about addressing the real issue?   

% perl -lwe '@a[0,2] = (0,2); print "@a $a", "$a", $a'
Use of uninitialized value in join at -e line 1.
Use of uninitialized value in concatenation (.) at -e line 1.
Use of uninitialized value in string at -e line 1.
Use of uninitialized value in print at -e line 1.

Those are all different cases.  They should not be conflated just
to stick a pacifier in the mouths of the confused, because that
would penalize the rest of us. People are can't understand warnings
should hire a programmer who can.

The real issue is ignorance.  Solve it by education.

--tom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About