Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: error on file open

by GrandFather (Sage)
on Nov 25, 2013 at 22:36 UTC ( #1064323=note: print w/replies, xml ) Need Help??


in reply to error on file open

Change your open (and following) line to:

open my $PS17, '<', $FILENAME or die "$! error on open - $FILENAME"; read_and_write ($PS17);

That doesn't fix the problem, but it gives better diagnostics (you know what was being opened), avoids potential problems with some file names by making the open mode explicit, and better manages the lifetime of the file handle. You'll need to update read_and_write to take the file handle as a parameter.

True laziness is hard work

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1064323]
help
Chatterbox?
[Corion]: Discipulus: I've looked for something but never found anything good
Corion looks at the SVG. If the different regions have IDs, then you can colorize the map by providing a CSS file with the colors.
[Corion]: Meh. IE crashes when displaying that SVG as saved from Firefox ...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2017-03-23 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.