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.