* 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
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 { #
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
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;