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

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

Replies are listed 'Best First'.
Re^9: Parse .csv file from FTP using Perl
by Tux (Abbot) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://977639]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2018-03-21 21:32 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (270 votes). Check out past polls.