I have a dozen Perl scripts which use the same .pm file for global variables. It works fine -- but then to detect a mistyped variable name easily, I added use strict;. Now it appears that to avoid the warnings, I have to explicitly export every variable in the file.
Is that true? Is there a short-hand way of saying export all variables?
Is there a cool way to continue to use the .pm file for global variables, use strict, and not go through the hassle of explicitly exporting every variable.
Any other good ideas?
Thanks.
Is that true? Is there a short-hand way of saying export all variables?
Is there a cool way to continue to use the .pm file for global variables, use strict, and not go through the hassle of explicitly exporting every variable.
Any other good ideas?
Thanks.