Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call a function

Status
Not open for further replies.

1yura1

Programmer
Feb 7, 2003
36
UA
Hi all in Perl.

I want to make a call of the function, which name is stored for example in some $variable (I don't know name of the function, I have only variable).

Thanks.
 
Something like this;

Code:
use CGI;
$IN = new CGI;

script.cgi?file=function1

&$IN->param('file');

sub function1 {
 .. do something here...
}

sub function3 {
 .. do something here...
}

sub function3 {
 .. do something here...
}

Not sure if that is valid...but its worth a go :)

Cheers

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top