Hi all,

Does anyone know how can I do something like:

my $mod = "Module.pm";

#Then require this $mod module (using eval()

#Then executing a certain subroutine from that module and getting the results.

I found that I can require a module and execute it entirely but I am not able to 
choose to execute just a subroutine from it, nor to extract the value of a certain 
variable because if I require that module using eval(), the vars are not exported.

Or is there any other way to do what I want?

(Choosing to run a certain module depending on some conditions, and getting some 
variables from a subroutine which I choose to execute.

Or if you believe that perl can do such a thing, and if you know where on the web I 
could find out more, please let me know.

Thank you very much.

Teddy,
teddy.fcc.ro     [EMAIL PROTECTED]

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to