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

Re^3: Looking for discussions of "block after or" syntax error

by Laurent_R (Parson)
on May 01, 2013 at 21:20 UTC ( #1031650=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open my $FH, "<", $in or (print "cannot open file $in\n" and exit 3);
  2. or download this
    $ perl -e 'open my $FH, "<", "xml.pl" and print "Opened!" or print "ca
    +nnot open file\n" and print 3'
    Opened!
    $ perl -e 'open my $FH, "<", "xml2.pl" and print "Opened!" or print "c
    +annot open file\n" and print 3'
    cannot open file
    3
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (16)
As of 2014-11-26 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (172 votes), past polls