jeffa is absolutely right. Here is why:
hen you declare a variable without strict, ie by just using it, that variable is automatically considered to be global. As it is global it can be read by both the main script and Getopt::Std. However, strict bans the use of such variable because it is too easy to accidentally create a global variable where you wanted a local one. So, with strict, you use my to declare a variable that has scope only within the current block (ie between { and } ) or you can declare a variable to be global. Not kowing what version of perl you have the best way to advise you how to do that is to use vars, as jeffa suggested.
$japh->{'Caillte'} = $me;
In reply to Re: how do i use module vars while using use strict; ?
by Caillte
in thread how do i use module vars while using use strict; ?
by L8on
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |