Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^8: Parse .csv file from FTP using Perl

by Sherlock Perl (Novice)
on Jun 21, 2012 at 13:45 UTC ( #977639=note: print w/ replies, xml ) Need Help??


in reply to Re^7: Parse .csv file from FTP using Perl
in thread Parse .csv file from FTP using Perl

Thank you for the clarifications. But why do you think my original code doens't do the job it is supposed to do?


Comment on Re^8: Parse .csv file from FTP using Perl
Re^9: Parse .csv file from FTP using Perl
by Tux (Monsignor) on Jun 21, 2012 at 15:00 UTC

    Only this line is extremely suspicious:

        $myfile = $ftp;

    $ftp is an object which will not ever be a filename. $myfile will now contain something like Net::FTP=GLOB(0x13734b8), which IMHO is most likely not what you want in there.


    Enjoy, Have FUN! H.Merijn
      Hi, I think you right. I am not sure how to use this as I wrote in my edited post couple of minutes ago. I will try your version now. What I want is to connect the code muba kindly wrote (and i altered a very little bit) to the .csv file I get from the ftp. I though this $myfile would in a way have the .csv file but obviously it doesn't. I will try changing to yours now. Is this what your code corrects? Thank you once again!
      I am done. Thank you all very much. I will try to do the SQL part now :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-12-18 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (41 votes), past polls