Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Strict and warnings: which comes first?

by cavac (Curate)
on Nov 13, 2019 at 07:51 UTC ( #11108614=note: print w/replies, xml ) Need Help??


in reply to Strict and warnings: which comes first?

In my code, i use (updateable-by-script) boilerplates:

#---AUTOPRAGMASTART--- use 5.020; use strict; use warnings; use diagnostics; use mro 'c3'; use English qw(-no_match_vars); use Carp; our $VERSION = 2.3; use Fatal qw( close ); use Array::Contains; #---AUTOPRAGMAEND---

...and yes, i still need to switch to autodie

perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'

Replies are listed 'Best First'.
Re^2: Strict and warnings: which comes first?
by afoken (Canon) on Nov 13, 2019 at 15:42 UTC
    use 5.020; use strict;

    use 5.020 implies use strict (since v5.12) and use feature (not relevant here), even without loading strict.pm or feature.pm - see use.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

      I know. But i decided to have "use strict" at the top of every perl file anyway. Just to make sure everyone reading it automatically knows it's in strict mode.

      perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11108614]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-10-27 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (256 votes). Check out past polls.

    Notices?