I have a method 'getNetwork' that returns a hash. I can quite happily 
go:
%reply = $network->getNetworkError('net','data','data2');
my $baseErr = $reply{error};

however, I can't go:
my $baseErr = $network->getNetworkError('net','data','data2')->{error};
nor:
my $baseErr = ${$network->getNetworkError('net','data','data2')}{error};
why not? And is there any way to do this in one line?

(If you're wondering, I've written a Perl module that effectivly 
provides an API to access a Java program that I wrote to do neural 
networks, with the communication between Perl and Java done via XML - so 
I get the nice development abilities of Java, and the report generation 
and quick editing of Perl).

-- 
Robin <[EMAIL PROTECTED]>                 JabberID: <[EMAIL PROTECTED]>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0x776DB663 Fingerprint=DD10 5C62 1E29 A385 9866 0853 CD38 E07A 776D B663

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to