Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by Sherlock Perl (Novice)
on Jun 21, 2012 at 13:45 UTC ( [id://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?

Replies are listed 'Best First'.
Re^9: Parse .csv file from FTP using Perl
by Tux (Canon) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://977639]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found