hepcat72 has asked for the wisdom of the Perl Monks concerning the following question:
I was reading up on this warning and saw that somehow the sort builtin manages to suppress these warnings regarding $a and $b. That's what I'd like to do, but for whatever file handle the user decides to use in the call to my openOut method. Can I do that from my module without forcing the user to add any extra code?Runtime warning: [Name "main::OUT" used only once: possible typo at no +close_test.pl line 50.].
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to suppress "only used once" regarding script file handles (that are in fact used in my module), but do it from a the module?
by Corion (Patriarch) on Nov 07, 2019 at 16:52 UTC | |
by hepcat72 (Sexton) on Nov 07, 2019 at 21:50 UTC | |
by Your Mother (Archbishop) on Nov 07, 2019 at 22:38 UTC | |
by hippo (Archbishop) on Nov 08, 2019 at 11:27 UTC | |
by tobyink (Canon) on Nov 08, 2019 at 09:56 UTC | |