earthboundmisfit has asked for the wisdom of the Perl Monks concerning the following question:
The somewhat amusing error message resulting from this implies that I'm asking Perl to accomplish some superhuman (supercomputational?) feat. I'm going on the assumption that this is being read as a deprecated subroutine call based on the current edition of the camel book, and that perhaps the negated class is doing something weird with the parser, but other than that, I cannot come up with an explanation for why this happens. Can someone enlighten me?# tested with Perl 5.6.x perl -e "do(!$var);"
Interestingly, adding a warnings switch squashes the error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: do() oddity
by clintp (Curate) on Sep 24, 2001 at 17:12 UTC | |
by John M. Dlugosz (Monsignor) on Sep 25, 2001 at 00:30 UTC | |
|
Re: do() oddity
by japhy (Canon) on Sep 24, 2001 at 17:15 UTC | |
|
(crazyinsomniac: do {}) Re: do() oddity
by crazyinsomniac (Prior) on Sep 25, 2001 at 11:19 UTC | |
|
Re: do() oddity
by buckaduck (Chaplain) on Sep 25, 2001 at 00:39 UTC | |
|
Re: do() oddity
by earthboundmisfit (Chaplain) on Sep 25, 2001 at 03:38 UTC |