Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Looking for discussions of "block after or" syntax error

by wsanders (Novice)
on May 01, 2013 at 18:21 UTC ( #1031626=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    open(F, "<$somefile") || {
        print "Could not open file\n";
        exit 3;
  2. or download this
    if (! open(F, "<$somefile")) {
        print "Could not open file\n";
        exit 3;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1031626]
Approved by LanX
Front-paged by toolic
[Corion]: Discipulus: Nah, I'm thinking of posting more short stuff, but not all of it is fit for, more something a bit longer than Twitter but shorter than my usual b.p.o module posts
[Corion]: But Google+ is tedious and I'd like to keep my posts on an open platform instead, which can be followed via RSS

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2017-05-26 07:45 GMT
Find Nodes?
    Voting Booth?