Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: unless vs. bare block

by chayashida (Acolyte)
on May 10, 2012 at 19:03 UTC ( [id://969851]=note: print w/replies, xml ) Need Help??


in reply to Re: unless vs. bare block
in thread unless vs. bare block

Thanks for your reply. Typically, I've been using the open or die syntax, but other admins have asked that the code continue even when a file is missing. Though I didn't post the surrounding code, it gracefully handles a null return value for the function.

I haven't looked at the open command in a while, so I haven't had any experience with the three-argument version. I have been using the strict pragma and tainting input (out of habit, from when I first started learning Perl with HTML.

I guess I haven't checked on it to see if there's a better way to do things now. Thanks, I'll check it out.

Replies are listed 'Best First'.
Re^3: unless vs. bare block
by Anonymous Monk on May 11, 2012 at 07:57 UTC

    I guess I haven't checked on it to see if there's a better way to do things now. Thanks, I'll check it out.

    Might as well check out the free Modern Perl book, a loose description of how experienced and effective Perl 5 programmers work....You can learn this too.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-18 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found