in reply to Error when using strict pragma
This is because use strict requires you're variables to be declared -- or, as I think on it, you could say use vars qw/$opt_u ... others here.../; (hey, TMTOWTDI :)
May I suggest, however, that (I assume you're using a GetOpt:: module here) you don't let the GetOpt module assign $opt_<whatever>, but instead pass it a hash reference. This way you can say $opts->{<whatever>} and be done with it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: strict
by Bird (Pilgrim) on Jul 25, 2002 at 18:28 UTC |