Can I have a Perl array with subroutines as its members? I have subroutines of following type:
sub CheckForSprintfUsage {
my ($line, $fname, $linenum) = @_;
if ( $line =~ /\bsprintf\b/ ) {
printError((caller(0))[3],$fname,$linenum);
}
}
I want to add such subroutines into an array so that I can iterate over it and call them.