skunspauk has asked for the wisdom of the Perl Monks concerning the following question:
Firstly, is there a list of modifications between different versions of Perl that I can peruse? I checked the FAQ and didn't see any such thing.
Secondly, might anyone know why the following code no longer works? It worked fine just yesterday... assume that $action and $package are not hardcoded, but are values that were looked up in a database....
The code works fine until the last line, and then just stops (doesn't even display the error message). Any insight would be greatly appreciated....my @vars; my $action = 'doit'; my $package = 'myperl::package'; eval "require $package"; &error( "No such package: $package ? ($! $@)" ); my $act = $package->new( $action ) or &error( "No proper action taken" + ); &$act( @vars ) or &error( "Failure to act" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: changes between Perl v5.00? to v5.6
by Albannach (Monsignor) on Nov 23, 2001 at 02:59 UTC | |
|
Re: changes between Perl v5.00? to v5.6
by mkmcconn (Chaplain) on Nov 23, 2001 at 01:38 UTC | |
|
Re: changes between Perl v5.00? to v5.6
by skunspauk (Initiate) on Nov 23, 2001 at 00:05 UTC |