Another option is using the forking open
This should work but is untested ...# Your normal code goes here if (open(SESAME, "-|")) { # parent process $ftp->put( \*SESAME ,"ftptest"); $ftp->quit; } else { # child process does all the printing print STDOUT "Whatever you like to print"; exit; }
Update: Fixed passing of filehandle as suggested by runrig.
-- Hofmator
In reply to Re: ftp put without a local file
by Hofmator
in thread ftp put without a local file
by fsn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |