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

Re: Cheap idioms

by John M. Dlugosz (Monsignor)
on Oct 14, 2002 at 21:11 UTC ( #205223=note: print w/ replies, xml ) Need Help??


in reply to Cheap idioms

I would write it in its own nice-named function, even if the function body contained the idiom.

Cute, and I note that the module File::Slurp doesn't do it that way!

I agree with tye. What if you were doing this in an older version of Perl and the problem was brought to your attention? You would have to find and fix every usage. But if using a module, fix it once. The module might grow and handle accomidations, nits, and other issues. Everyone benifits from that experience.

BTW, I recall not using File::Slurp somewhere, because, like yours, it doesn't do binmode.


Comment on Re: Cheap idioms

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-08-02 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls