BUU has asked for the wisdom of the Perl Monks concerning the following question:
$ perl -wle'print defined +() ? 1 : 0' $ 0 $ perl -wle'$_ = 1; print defined +() ? 1 : 0' $ 0 $ perl -wle'$_ = 1; print defined () ? 1 : 0' $ 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: An empty list in boolean context?
by herveus (Prior) on Aug 05, 2005 at 18:12 UTC | |
|
Re: An empty list in boolean context?
by Joost (Canon) on Aug 05, 2005 at 19:05 UTC | |
|
Re: An empty list in boolean context?
by revdiablo (Prior) on Aug 05, 2005 at 20:37 UTC | |
|
Re: An empty list in boolean context?
by merlyn (Sage) on Aug 06, 2005 at 02:55 UTC | |
|
Re: An empty list in boolean context?
by sk (Curate) on Aug 05, 2005 at 18:29 UTC | |
|
Re: An empty list in boolean context?
by ikegami (Patriarch) on Aug 05, 2005 at 18:11 UTC |