|We don't bite newbies here... much|
Text strangeness after using SMB to get a fileby jimbus (Friar)
|on Sep 09, 2005 at 21:17 UTC||Need Help??|
jimbus has asked for the
wisdom of the Perl Monks concerning the following question:
Alright, here's another stupid one
When I use SMB to DL a CSV file there is something funky happening to the lines in the file. If I move the files with ftp they are fine (we had this discussion before: the source machine doesn't have an FTP server, but is mounted to our laptops, most people's laptops don't have an FTP server or perl, so I need to get the files from the source machine to the processing machine (a solaris 8 machine). I can ftp them using a client on the laptop then open telnet to run the script or use telnet to run the script and have the script do it with SMB).
Reading all the lines and printing them as such:
I get the results for FTP:
This is what I get for SMB (note the print is "LINE:$mem<":
This is how I'm making the SMB call:
I'm sure its something like a chomp or something, but I can't figure it out
Never moon a werewolf!