Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: "open" Best Practices

by eyepopslikeamosquito (Chancellor)
on Jul 13, 2019 at 09:04 UTC ( #11102778=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(my $fh, '<', $file) or die "error opening '$file': $!";
    
  2. or download this
    open(my $fh, '<', $file) || die "error opening '$file': $!";
    
  3. or download this
    if ($x > 5 || $y < 10) ...
    
  4. or download this
    if ($x > 5 or $y < 10) ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2020-02-28 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (127 votes). Check out past polls.

    Notices?