bsb has asked for the wisdom of the Perl Monks concerning the following question:
The use of a glob name as a parameter to a Fatal
overriden function doesn't count for some reason.
In the code below, "open A, ..." isn't counted.
What is going on?
[11:34 bsb]$ perl -wl -e 'open A, "date|"; print scalar <A>' Tue Mar 25 11:34:27 EST 2003 [11:34 bsb]$ perl -wl -MFatal=open -e 'open A, "date|"; print scalar < +A>' Name "main::A" used only once: possible typo at -e line 1. Tue Mar 25 11:34:36 EST 2003 [11:34 bsb]$ perl -wl -MFatal=open -e 'open A, "date|"; print readline + A' Tue Mar 25 11:34:45 EST 2003
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fatal + <FILE> = only once warning (deparsed)
by Aristotle (Chancellor) on Mar 25, 2003 at 01:37 UTC | |
|
Re: Fatal + <FILE> = only once warning
by pg (Canon) on Mar 25, 2003 at 02:09 UTC |