Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Reusing a Parse::CSV module

by Not_a_Number (Parson)
on Dec 01, 2011 at 17:45 UTC ( #941130=note: print w/ replies, xml ) Need Help??


in reply to Reusing a Parse::CSV module

Presuming that you just pass two filenames, one after the other, to your sub, your code works for me as is.

But I don't see any error checking. Maybe the scond file doesn't exist, or you've misspelt its name?

Change the second line in your sub to:

my $parser = Parse::CSV->new( file => $file ) or die Parse::CSV->errstr;


Comment on Re: Reusing a Parse::CSV module
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-12-20 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls