Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How many man-hours would you estimate you have invested in learning Perl?

by blue_cowdawg (Monsignor)
on Apr 01, 2013 at 15:49 UTC ( [id://1026506]=note: print w/replies, xml ) Need Help??


in reply to How many man-hours would you estimate you have invested in learning Perl?

It would seem that every time I type "emacs" in the command line and start off by entering "#!/usr/bin/perl -w" into the editor session I end up learning something new about Perl. So I've never stopped learning Perl.

Coming to Perl Monks for the first time (2001) helped me understand how much more I needed to learn back then. I thought I was "Hotel-Sierra" at Perl and found out that there were many corners of the language I had not looked in.

Regex'es continue to plague me no matter how much reading on the subject I've done, no matter how many examples I've tried no matter what. Every time I get a regex to execute as I expect I do the happy victory dance.

Seems to me you never stop learning this language we all love so much...


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Replies are listed 'Best First'.
Re^2: How many man-hours would you estimate you have invested in learning Perl?
by mithaldu (Monk) on Apr 09, 2013 at 12:46 UTC
    Let me teach you something else. :)

    #!/usr/bin/perl -w is not something you should use. Specifically the -w in there will enable warnings for ALL code, which can include modules which were expressly written to run correctly without warnings (like Coro).

    A better preamble would be:
    #!/usr/bin/env perl use strictures;
    Happy coding! :D

      #!/usr/bin/env perl isn't portable, as not all platforms have env in the same place. You should use this instead:

      #!/bin/sh exec perl -x $0 "$@" #!perl # your perl code goes here
          #!/usr/bin/perl -w is not something you should use. Specifically the -w in there will enable warnings for ALL code, which can include modules which were expressly written to run correctly without warnings (like Coro).

      Not sure I follow your argument. I want warnings turned on. It has saved my butt many a time and yes I'm aware of the drawbacks.


      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

        Sure, you want warnings turned on... for your own code. That's what use warnings is for.

        Why would you want to use a global setting to cause other modules to throw warnings even though they are operating as intended? (as in the example)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-03-19 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found