CHILD_ERROR and forking within a child

2005-09-07 Thread steve abrams
* code 'paraphrased' for simplicity * Hi all, I have a script which goes to a subroutine. Within the subroutine, there exists: $pid = fork; push(@pids, $pid); unless ($pid) { my $var = new Object; if (not $var-method_that_evokes_a_child()) {Exit;} exit 2; } where the

Passing Hash Reference from Class Method?

2005-01-19 Thread steve abrams
How do I get a hash back from a class method call? Without a class involved (works): sub hashit { my %hash = (a, 1, b, 2); return \%hash; } my $hash_ref = hashit(); %%% With class (doesn't work): sub hashit { #

Re: Passing Hash Reference from Class Method?

2005-01-19 Thread steve abrams
for previous help, Steve steve abrams wrote: How do I get a hash back from a class method call? Without a class involved (works): sub hashit { my %hash = (a, 1, b, 2); return \%hash; } my $hash_ref = hashit(); %%% With class (doesn't work): sub hashit

Net::FTP and filehandle with get()

2005-01-17 Thread steve abrams
Hi all, First post to the group. I have two questions, but they go hand in hand. The first: Net::FTP documentation reports that get syntax is: get ( REMOTE_FILE [, LOCAL_FILE [, WHERE]] ) I do the following (with $ftp initialization omitted here): local $fh = IO::File-new_tmpfile;