twdog has asked for the wisdom of the Perl Monks concerning the following question:
i've got users who are - er - untidy who don't want the restriction of use strict. i'd like to beat them over the head, but they'd like a flag to turn it off. something like:
script.pl -nostrict inputfile
where inputfile has some perlcode to be evaluated by script.pl. i've tried:
unless($nostrict) { use strict }
which compiles, but has no effect, no matter the value of $nostrict
ideas? t.i.a.
sj
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: make "use strict" optional?
by Zaxo (Archbishop) on Sep 28, 2004 at 23:18 UTC | |
|
Re: make "use strict" optional?
by diotalevi (Canon) on Sep 28, 2004 at 23:15 UTC | |
by Fletch (Bishop) on Sep 29, 2004 at 00:51 UTC | |
|
Re: make "use strict" optional?
by eyepopslikeamosquito (Archbishop) on Sep 28, 2004 at 23:59 UTC | |
by JediWizard (Deacon) on Sep 29, 2004 at 00:30 UTC | |
by Anonymous Monk on Sep 29, 2004 at 09:01 UTC | |
by eyepopslikeamosquito (Archbishop) on Sep 29, 2004 at 22:43 UTC | |
|
Re: make "use strict" optional?
by davorg (Chancellor) on Sep 29, 2004 at 08:11 UTC | |
by DrHyde (Prior) on Sep 29, 2004 at 09:11 UTC | |
|
Re: make "use strict" optional?
by CountZero (Bishop) on Sep 29, 2004 at 06:05 UTC |