#perl - Thu 15 Mar 2007 between 00:47 and 00:57



seigthat would be too simple :P
maukeseig: if (!open my $fh, ...) { handle_the_error_somehow(); }
oops, wrong scoping
Randalseig - look at my hierarchy
maukeopen my $fh, ... or do { handle_the_error_somehow(); };
Randalyou don't need in-memory filehandles!
put_data($dat)
seigcan Net::FTP pass just a raw string of data though?
Randalwhich simply writes the data at the right time to the remote
see what put() calls in the source code
at some point, it's going to try to read the data then call somethign else with that data
call that insteasd
seigfrom the docs: 'Put a file on the remote server. "LOCAL_FILE" may be a name or a filehandle.'
ok
RandalIt appears to have only a file-based interface
actionRandal sighs
Randalsighs
it calls read() deep in the guts
seigthanks for looking at it for me, i wasn't quite following it, modules and packages aren't one of my strong suits...
rhizoseig: you probably should be using Net::SFTP anyway
Randalthere are very stupid ISPs that support FTP and not SFTP though
STUPID STUPID isps
rhizoor Net::SCP - something secure
seigrhizo: i know, but its not my choice, sftp isn't really an option
and the file has to be downloaded by non-tech savvy people, i don't think IE or Firefox can handle SFTP on their own
Davemanthanks thrig :)
But I don't want to buy mine :P
thriglazy
DavemanI guess I'll have to earn them :)
f00li5hwhy not just email the file to them?
seigRandaL: So I need to use an in-memory file then?
Randalif you really want to support uploding data, yes
why would you have data to ftp?
seigits creating a file that gets sent off to a printing company to print a bunch of postcards
rhizo{GMail::Checker}-- # buggy piece of crap :(
maukeholy interface, batman
Randalrhizo - that's not affecting karma
you want (...)---
two minus
perlbot, karma thinkg
perlbotthinkg doesn't have any karma

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 

IrcArchive