Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: csv file is not opening using use strict

by aitap (Curate)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2018-03-22 02:43 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (272 votes). Check out past polls.