Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: unable to open input file

by meraxes (Friar)
on Jan 12, 2009 at 15:06 UTC ( #735698=note: print w/ replies, xml ) Need Help??


in reply to unable to open input file

From open:

You can put a '+' in front of the '>' or '<' to indicate that you want both read and write access to the file; thus '+<' is almost always preferred for read/write updates--the '+>' mode would clobber the file first. You can't usually use either read-write mode for updating textfiles, since they have variable length records.

I'm assuming INP is a text file so perhaps just '<' is a better file mode.

update: added link to perlfunc and suggest you follow advice of toolic and Fletch

--
meraxes


Comment on Re: unable to open input file
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2016-02-15 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (471 votes), past polls