in reply to Making strict optional
Put this in your code, and it will print a message if it cannot load strict for whatever reason. You can take out the message if you want.eval 'use strict'; if ($@) { # If it cannot 'use strict' then it will put the error in $ +@ print "Cannot 'use strict', it appears to be missing\n"; }
Update: Put the {} for the eval command in the wrong place... Just taking them out altogether and removing it from the BEGIN block. At least I learned something today.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Making strict optional
by ikegami (Patriarch) on May 31, 2006 at 15:08 UTC | |
|
Re^2: Making strict optional
by Fletch (Bishop) on May 31, 2006 at 15:08 UTC | |
by gellyfish (Monsignor) on May 31, 2006 at 15:11 UTC | |
|
Re^2: Making strict optional
by betterworld (Curate) on May 31, 2006 at 15:13 UTC |