in reply to Re: Stringifying undefs
in thread Stringifying undefs

Or, if you have warnings turned off:
print "\$foo = " . ($foo + 0);

Replies are listed 'Best First'.
Re: Re: Re: Stringifying undefs
by esskar (Deacon) on Mar 05, 2004 at 10:20 UTC
    use warnings; my $foo = undef; print "\$foo = " . (++$foo-1);