hi, I am trying to use forks() or some form of multiprocesss, but it seems
i am hitting a wall everytime
I get an error that i don't understand
"Bizarre SvTYPE [157] at bftpcf.pl line 256" or "Bizarre SvTYPE [157] at
simple.pm line ###".
this is how i am implementing forks()
sub CMD($) {
chomp( $CMD = <> );
if ( $CMD =~ m/^dl\s.*/i )
{ #if input matches "dl [thefile]" start download and display prompt
again
$CMD =~ /^dl\s(.*)/i;
dl($1);
my $pid = fork();
sub dl {
my $file = $_[0];
$ftp->Get($file) || &NotValidFile;
}
kill($pid);
&CMD;
}
basically, i want to start a dl process from an ftp site, and go back to
&CMD prompt and do other stuff, while the process,(download) is in progress.
I really feel alone without good examples of forks....Your help will be
greatly appreciated.
thankyou
Jeremy A.
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users