[Fwd: [vienna.pm] use strict & indirekter subroutinen-aufruf]
Frank Rothhaupt
Frank.Rothhaupt at consol.de
Thu Apr 4 06:50:37 CST 2002
* * * vienna-pm-list * * *
Hi all,
sollte es nicht
4 => \&test
heissen?
bei mir funktioniert es nur so.
Ciao,
Frank
"Peter J. Holzer" wrote:
>
> 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
>
> ------------------------------------------------------------------------
> Part 1.2Type: application/pgp-signature
--
Frank Rothhaupt,
Tel.: +49 89 45841-292
Fax : +49 89 45841-111
frank.rothhaupt at consol.de
###
You are subscribed to vienna-pm-list as Frank Rothhaupt <Frank.Rothhaupt at consol.de>
http://www.fff.at/fff/vienna.pm/
More information about the Vienna-pm
mailing list