Sara has asked for the wisdom of the Perl Monks concerning the following question:
when I use strict , it gives me :my $ret = GetOptions( "u|updated:s"); my $update = $opt_u || die "Usage: $0 -u update_ID\n";
but without strict , it works fine .. thanks for helpGlobal symbol "$opt_u" requires explicit package name at c:/Perl/MyScr +ipts/updlnt.pl line 27.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: strict
by dws (Chancellor) on Jul 24, 2002 at 22:27 UTC | |
|
Re: strict
by dimmesdale (Friar) on Jul 24, 2002 at 22:07 UTC | |
by Bird (Pilgrim) on Jul 25, 2002 at 18:28 UTC | |
|
Re: strict
by simon.proctor (Vicar) on Jul 24, 2002 at 22:53 UTC | |
|
Re: strict
by fuzzyping (Chaplain) on Jul 24, 2002 at 22:02 UTC | |
|
Re: Error when using strict pragma
by sauoq (Abbot) on Jul 25, 2002 at 01:48 UTC |