Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: csv file is not opening using use strict

by aitap (Deacon)
on Sep 07, 2012 at 19:09 UTC ( #992361=note: print w/replies, xml ) Need Help??

in reply to csv file is not opening using use strict

Well, where does the file exist? What is the working directory of the script you are running? Try:
use feature 'say'; say for <*>;
This code will print all file names in the current working directory of the Perl program running, and you will be able to see whether Perl can see this file there, or not.. Perhaps your file is actually in another directory. You can use @ARGV to get the file names from the command line parameners instead of hardcoding them in the script. You can also use Cwd to get the current working directory and use chdir to change it (usually it's not needed).
Sorry if my advice was wrong.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2016-10-26 18:33 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (345 votes). Check out past polls.