Hello

First of all, I apologize if this is not the right list to ask my question,
but as I am a perl beginner, I think it is the most suitable list for me :o)

So here goes my question:

I have a main program which will call a subroutine, say "S", belonging to
another module. The question is that there could be several modules that
contain a subroutine also named "S", which basically will return equivalent
values to the main program.

My problem is that I don't want to harcode the name of those modules (for
example using an "if"), because I don't know a priori how many there will be
or which will be needed to call at any moment. The idea is that there will
be a file in which the main program could read which module is necessary in
each moment, and so call it.

So the question is: Is there any way to call a subroutine without explicitly
writing his name?

Thanks in advance, and if I haven't been able to explain it well, please ask
me :o)

Regards

Ana


--
"El más baldío de todos los días
es aquél en que no hemos reído"
                          (de Chamfort)

Reply via email to