in reply to Re: odd =>behavior
in thread odd =>behavior
No, if( $var => 2 ) { ... } is the same as if( $var, 2 ) { ... }, and a LIST in scalar context is the last element from the list. There's nothing undefined about it.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: odd =>behavior
by chromatic (Archbishop) on Dec 04, 2007 at 17:53 UTC | |
by Fletch (Bishop) on Dec 04, 2007 at 17:57 UTC | |
by chromatic (Archbishop) on Dec 04, 2007 at 19:15 UTC | |
by Fletch (Bishop) on Dec 04, 2007 at 19:52 UTC | |
by ysth (Canon) on Dec 05, 2007 at 02:18 UTC |