Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Common Perl Pitfalls

by dwalin (Monk)
on Apr 10, 2012 at 23:50 UTC ( #964425=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Common Perl Pitfalls
in thread Common Perl Pitfalls

Considering that Joe_'s example uses a handle and your last two use filename, it could be confusing for a novice.

Why I wouldn't use the second example in production? Readability. Not everybody is familiar with intimate relationship between @ARGV and <>, and this solution doesn't really give any advantage over the common one.

P.S. As for your show-off harshness, I care less for anti-snobs than I do for snobs. You didn't hire me, you have no authority to fire me. Have a good day sir.

Regards,
Alex.


Comment on Re^4: Common Perl Pitfalls
Re^5: Common Perl Pitfalls
by JavaFan (Canon) on Apr 10, 2012 at 23:57 UTC
    Not everybody
    Ah, but I don't have to write my production code for everybody. At best, only a hundred or so eyes will see my production code before it's obsolete or rewritten.
      Well, I would consider myself lucky if I could afford writing production code knowing that only people smarter than me will ever see it. Not there yet, if ever.

      Regards,
      Alex.

        I work with people who can do at least one of the following:
        • Have seen the idiom before. (If you think I invented the line we're talking about, you're mistaken).
        • Understand the code we're talking about.
        • Read the manual pages.
        • Run git blame and ask.
        I'm sorry you have to work with people who lack all of those skills.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2014-10-01 13:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (21 votes), past polls