|
|
![]() |
![]() |
![]() |
|
Languages
Documentation Project MS Visio Flowcharts Notes & Examples Browse Current Version
|
CGI Notes and Examples
Strict Dynamic Subroutines The following code will not work with the strict package, but will work when the strict package is not included. #!/usr/bin/perl -w
my $var="testsubname";
&var;
sub testsubname{
print "success";
exit;}
The following is code for dynamic subroutine calls that work with the strict package.
#!/usr/bin/perl -w
use strict;
my $bar = \&{"$var"};
&$bar;
sub testsubname{
print "success";
exit;}
|
Help Wanted
Inqueries E-mail: deimnos at users.sourceforge.net Sourceforge Project Summary
|