aapada has asked for the wisdom of the Perl Monks concerning the following question:
shouldn't the first print 1 ?$ perl -e 'print (my ($rec) = undef);' print nothing, but $ perl -e 'print "return=" . (my ($rec) = undef);' print return=1
aside from the "why would you do that?" questions....
thanks!
update (broquaint): put <code> tags in apporpriate place and added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: undef var
by sgifford (Prior) on Jul 03, 2003 at 20:42 UTC | |
by tye (Sage) on Jul 03, 2003 at 21:03 UTC | |
by tcf22 (Priest) on Jul 04, 2003 at 17:06 UTC | |
|
(jeffa) Re: undef var
by jeffa (Bishop) on Jul 03, 2003 at 20:32 UTC | |
|
Re: undef var
by Anonymous Monk on Jul 04, 2003 at 09:18 UTC |