in reply to Re: BrainPain-Help
in thread BrainPain-Help
In this code, function f is being invoked in a list context, and may return 0 or more items. This will really mess up the key/value pairing required for %x.%x = ( A => f(1), B => f(2), C => f(3) );
I suggest your code be hacked so that you're doing:
%x = ( A => scalar f(1), B => scalar f(2), C => scalar f(3) );
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
RE (3): BrainPain-Help
by tilly (Archbishop) on Aug 10, 2000 at 20:16 UTC | |
by coreolyn (Parson) on Aug 10, 2000 at 20:31 UTC | |
<code>=></code> and list context; Re: BrainPain-Help
by tye (Sage) on Aug 10, 2000 at 20:37 UTC | |
RE: RE: Re: BrainPain-Help
by coreolyn (Parson) on Aug 10, 2000 at 20:07 UTC |