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

Re^3: Why can't I open a file for writing?

by jwkrahn (Abbot)
on Jan 13, 2018 at 02:36 UTC ( [id://1207178]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why can't I open a file for writing?
in thread Why can't I open a file for writing?

If you use || instead of or then you need parentheses for the open function:

open( NEWFILE, '>', "$dir/subdirectory/$outputfile" ) || die "Can't +open $dir/subdirectory/$output

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-23 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found