in reply to 'used once' during perl -c
First, how do I silence this warning during -c?Just turn off that type of warnings for the given scope e.g
Or just mention it again in some way (according to perldiag).{ no warnings 'once'; *import = coderef(); }
Second, why does it let me refer to *import without declaring it first or qualifying it when use strict is in effect?Because strict doesn't deal with globs. I think it's assumed if you're messing with globs you probably (and hopefully) know what you're doing.
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: 'used once' during perl -c
by John M. Dlugosz (Monsignor) on Nov 01, 2002 at 16:14 UTC | |
by bbfu (Curate) on Nov 02, 2002 at 18:53 UTC | |
by John M. Dlugosz (Monsignor) on Nov 04, 2002 at 20:18 UTC | |
by bbfu (Curate) on Nov 06, 2002 at 02:19 UTC |