Hi again On 12/02/07, Igor Sutton Lopes <[EMAIL PROTECTED]> wrote:
You can use the UNIVERSAL's can() method. Assuming you have a module called "M"; <code> package M; sub some_function { print "some_function()", "\n"; } package main; my $function_name = "some_function"; if (my $coderef = M->can($function_name)) { $coderef->(); } </code>
Thank you for your idea, but I think this doesn't solve my problem, because what I don't know a priori is the module's name (in your example, M), not the function's name. Regards Ana -- "El más baldío de todos los días es aquél en que no hemos reído" (de Chamfort)