Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I can't get the string $function to be executed as the filter_function. Any ideas would be appreciated.ex: process_document -f Module::filter_function -i file_name where process_document does: # parse -f argument into $module, $function eval "require $module"; # openfile # $document set to document # do some stuff to $document #do user specified processing $document = $function($document); # do more stuff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: How to specify a specific Module::subroutine as command option
by tilly (Archbishop) on Jul 25, 2001 at 03:49 UTC | |
|
Re: How to specify a specific Module::subroutine as command option
by petral (Curate) on Jul 25, 2001 at 03:20 UTC |