| seig | that would be too simple :P |
| mauke | seig: if (!open my $fh, ...) { handle_the_error_somehow(); } oops, wrong scoping |
| Randal | seig - look at my hierarchy |
| mauke | open my $fh, ... or do { handle_the_error_somehow(); }; |
| Randal | you don't need in-memory filehandles! put_data($dat) |
| seig | can Net::FTP pass just a raw string of data though? |
| Randal | which 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 |
| seig | from the docs: 'Put a file on the remote server. "LOCAL_FILE" may be a name or a filehandle.' ok |
| Randal | It appears to have only a file-based interface |
| action | Randal sighs |
| Randal | sighs it calls read() deep in the guts |
| seig | thanks for looking at it for me, i wasn't quite following it, modules and packages aren't one of my strong suits... |
| rhizo | seig: you probably should be using Net::SFTP anyway |
| Randal | there are very stupid ISPs that support FTP and not SFTP though STUPID STUPID isps |
| rhizo | or Net::SCP - something secure |
| seig | rhizo: 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 |
| Daveman | thanks thrig :) But I don't want to buy mine :P |
| thrig | lazy |
| Daveman | I guess I'll have to earn them :) |
| f00li5h | why not just email the file to them? |
| seig | RandaL: So I need to use an in-memory file then? |
| Randal | if you really want to support uploding data, yes why would you have data to ftp? |
| seig | its creating a file that gets sent off to a printing company to print a bunch of postcards |
| rhizo | {GMail::Checker}-- # buggy piece of crap :( |
| mauke | holy interface, batman |
| Randal | rhizo - that's not affecting karma you want (...)--- two minus perlbot, karma thinkg |
| perlbot | thinkg doesn't have any karma |