in reply to Error Message when I use Strict
use strict; use warnings; my $SubroutName='test'; my %SubroutDispatch = ( test => \&test, test1 => \&test1, test2 => \&test2, ); my $text='abcdefgijkl'; my $sub = $SubroutDispatch{$SubroutName}; &$sub($text); sub test { print "\nokey $_[0]!"; } sub test1{ print "\nokey!"; } sub test2{ print "\nokey!"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error Message when I use Strict
by Anonymous Monk on Jul 29, 2005 at 11:50 UTC | |
by Joost (Canon) on Jul 29, 2005 at 12:48 UTC | |
by holli (Abbot) on Jul 29, 2005 at 12:39 UTC |