On Nov 5, Tore Aursand said:

>On Tue, 04 Nov 2003 13:58:41 -0500, mgoland wrote:
>> %hash=( 1 => funca(),
>>         2 => funcb(),
>>       );
>
>Try this:
>
>  %hash = (1 => \&funca(),
>           2 => \&funcb());

No; \&foo is a reference to the foo function, but \&foo() is a reference
to the return value of the call to &foo().

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to