[vienna.pm] use strict & indirekter subroutinen-aufruf
Peter J. Holzer
hjp at wsr.ac.at
Thu Apr 4 06:29:57 CST 2002
On 2002-04-04 14:07:57 +0200, Baier Oliver INT SD wrote:
> Weiss einfach nicht, wie ich die subroutine deklarieren muss,
> um sie nachher ueber "&{$stats{$ARGV[0]}}($param)" indirekt
> aufzurufen zu koennen. "sub test;" funkt nicht.
Die Deklaration ist schon in Ordnung, nur die Verwendung nicht.
> my %stats = (
> 4 => "test"
4 => &test
> );
hp
--
_ | Peter J. Holzer | My definition of a stupid question is
|_|_) | Sysadmin WSR / LUGA | "a question that if you're embarassed to
| | | hjp at wsr.ac.at | ask it, you stay stupid."
__/ | http://www.hjp.at/ | -- Tim Helck on dbi-users, 2001-07-30
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 431 bytes
Desc: not available
Url : http://mail.pm.org/archives/vienna-pm/attachments/20020404/0a9491a0/attachment.bin
More information about the Vienna-pm
mailing list