Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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.


Comment on Re: csv file is not opening using use strict
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-09-21 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (175 votes), past polls