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

Re: [ID 20000403.009] uninitialised concatenation???

From:
Stephen P. Potter
Date:
April 4, 2000 06:33
Subject:
Re: [ID 20000403.009] uninitialised concatenation???
Message ID:
200004041342.JAA15568@spp.users.ds.net
Lightning flashed, thunder crashed and Tom Christiansen <tchrist@chthon.perl.co
m> whispered:
| >There may indeed be concatenation going on in building the string, but my
| >question is more to do with whether I'm the only one who thinks the message 
> is
| >a bit misleading with the 'concatenation (.)' bit.  I can't see a single
| >period in the string: "$this and @that" and I'm not explicitly joining
| >anything.
| 
| --- /usr/local/src/perls/perl-5.6.0/sv.c	Thu Mar 23 14:44:37 2000
| +++ ./sv.c	Sat Apr  1 08:36:08 2000
| @@ -218,10 +218,26 @@
 
How about the much less inflamatory, and much more useful:

--- opcode.h~   Tue Apr  4 09:30:06 2000
+++ opcode.h    Tue Apr  4 09:26:38 2000
@@ -439,7 +439,7 @@
        "integer addition (+)",
        "subtraction (-)",
        "integer subtraction (-)",
-       "concatenation (.)",
+       "string or concatenation (.)",
        "string",
        "left bitshift (<<)",
        "right bitshift (>>)",                                                 

Which causes:
./perl -we ' print "$x and $y"'
Name "main::x" used only once: possible typo at -e line 1.
Name "main::y" used only once: possible typo at -e line 1.
Use of uninitialized value in string or concatenation (.) at -e line 1.
Use of uninitialized value in string or concatenation (.) at -e line 1.        

-spp



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