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.
In reply to Re: Making strict optional
by Herkum
in thread Making strict optional
by dsheroh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |