Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Why does an undef argument in a join produce this warning?

by chromatic (Archbishop)
on Apr 24, 2008 at 06:12 UTC ( [id://682562]=note: print w/replies, xml ) Need Help??


in reply to Why does an undef argument in a join produce this warning?

Interpolating a variable containing an uninitialized value into a string produces that warning if you have warnings enabled. Remove the double quotes and the warning will disappear. join has nothing to do with it.

  • Comment on Re: Why does an undef argument in a join produce this warning?

Replies are listed 'Best First'.
Re^2: Why does an undef argument in a join produce this warning?
by Anonymous Monk on Apr 24, 2008 at 06:18 UTC
    But sometimes I need to interpolate that value and pass it to the test2 sub. Hmmm... perhaps I could check if the variable is not defined before passing to the sub.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://682562]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-07-15 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.