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

Re: [ID 20000403.009] uninitialised concatenation???

From:
Richard Foley
Date:
April 4, 2000 05:59
Subject:
Re: [ID 20000403.009] uninitialised concatenation???
Message ID:
38E9E6DA.CDD70451@m.dasa.de
Philip Newton wrote:
> 
> On Mon, 3 Apr 2000, Richard Foley wrote:
> 
> > Trying to print out some debugging info with the following statement:
> >       print "targets($tgt) -> targets(@targets) -> '$dest' (@dest)";
> >
> > Produces the following (IMHO strange) output:
> >       Use of uninitialized value in concatenation (.) at ..//Perlbug/Email.pm line 815
> >
> > The actual string looks like this:
> >       targets() -> targets(unix win32 module generic macos) -> '' (perlbug@perl.org perl-win32-porters@perl.org modulebug@perl.org perlbug@perl.org macperlbug@perl.org)";
> >
> > OK, there's blank values there, but where's the concatenation or is it one of these healthy (clear) implicit things?
> 
> You're kidding, right?
Nope, try it another way:

my $str = "$this and @that"; # -> Use of uninitialized value in concatenation
(.) at .. bla bla

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.

Woof

Ciao
Richard Foley
---
richard@rfi.net
'Ciao' - shorter than 'Aufwiedersehen'



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