in reply to Re^4: Blessing interior hashes
in thread Blessing interior hashes
I had tested with the following. Note the lack of warning
>perl -wle"$r=[]; print eval { %$r || 1 }
Turns out we're both wrong. eval returns an empty list.
>perl -wle"$r=[]; print scalar(() = eval { %$r || 1 }); 0
An empty list is interpreted as undef in scalar context.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Blessing interior hashes
by lodin (Hermit) on Oct 03, 2007 at 20:24 UTC | |
by ikegami (Patriarch) on Oct 03, 2007 at 20:37 UTC |