AOI CMS AOI CMS AOI CMS

Main
Home
News




Languages
Language Packs
  English
  Espanol
  Français


Documentation Project
English

MS Visio Flowcharts
Visio Project
Visio Web Page with SVG
Visio PDF


Notes & Examples
Perl-CGI
MySQL DB Notes
 


Browse Current Version
Top Directory


CGI Notes and Examples

  1. Strict Dynamic Subroutines

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;}

SourceForge.net Logo
Website & Application Hosting Provided by Source Forge.

Help Wanted

  • Language Translators for Website & CGI Packages
  • Concurrent Version System Administrator/Submitter

Inqueries E-mail: deimnos at users.sourceforge.net

Sourceforge Project Summary

Tracker Tracker

 - Bugs ( 0 open / 0 total )
Bug Tracking System

 - Support Requests ( 0 open / 0 total )
Tech Support Tracking System

 - Patches ( 0 open / 0 total )
Patch Tracking System

 - Feature Requests ( 0 open / 0 total )
Feature Request Tracking System


Forums Forums ( 2 messages in 2 forums )
Docs Doc Manager
Mail Lists Mailing Lists ( 0 mailing lists )
Tasks Task Manager
There are no public subprojects available
CVS CVS Tree ( 0 commits, 0 adds ) known bug
FTP Released Files


AOI Content Management System