#!/usr/bin/perl -w use strict; sub filename($){ print "it worked!\n"; } my $dbh; my $filename = 'filename'; no strict 'refs'; &{$filename}($dbh); use strict 'refs';
In reply to Re: How to use a scalar variable to call a subroutine?
by kilinrax
in thread How to use a scalar variable to call a subroutine?
by apprentice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |