Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

How to determine if 'strict' is enabled

by kcott (Archbishop)
on Jun 07, 2023 at 01:59 UTC ( #11152671=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ken@titan ~/tmp
    $ perl -e 'use strict; print "$_\n" for keys %INC;'
    ...
    $ perl -e 'use strict; my $x = xyz;'
    Bareword "xyz" not allowed while "strict subs" in use at -e line 1.
    Execution of -e aborted due to compilation errors.
    
  2. or download this
    ken@titan ~/tmp
    $ perl -e 'use 5.012; print "$_\n" for keys %INC;'
    ...
    $ perl -e 'use 5.012; my $x = xyz;'
    Bareword "xyz" not allowed while "strict subs" in use at -e line 1.
    Execution of -e aborted due to compilation errors.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11152671]
Front-paged by Discipulus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2023-12-11 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?