Yes you can say our $opt_m;
or use vars qw($opt_m); at the top of your program (depending on perl version). ----- Original Message ----- From: "Hans Holtan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 9:30 PM Subject: use Getopt::Std; and use strict; > Hi everyone, > I have a problem using Getopt::Std. I depend on use strict for all my > code, and when I use Getopt::Std all the variables it creates (to > hold the command line option values) are flagged by strict because > they have not been scoped. I get errors like this: > > Line 70: Global symbol "$opt_m" requires explicit package name > > If I don't use strict the program runs fine. Is there anything I can > do about this? Does anyone use both together? > > Thanks for the help. > > -Hans > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]