Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Tux (Monsignor)
on Jun 21, 2012 at 15:00 UTC ( #977663=note: print w/ replies, xml ) Need Help??


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

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


Comment on Re^9: Parse .csv file from FTP using Perl
Select or Download Code
Re^10: Parse .csv file from FTP using Perl
by Sherlock Perl (Novice) on Jun 21, 2012 at 15:11 UTC
    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!
Re^10: Parse .csv file from FTP using Perl
by Sherlock Perl (Novice) on Jun 21, 2012 at 15:19 UTC
    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://977663]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-07-28 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (189 votes), past polls