in reply to Identifying Library Usage
Well, the first one is ridiculous in a CGI script, but what about the others? Well, I guess you could turn on#1 print "Enter some Perl code: "; eval ($this_is_a_great_design = <STDIN>); #2 my $result = &{ $control_db->{"action"} }; #3 my @foo_functions = map (\&("foo_".$_)) @bar;
and if this didn't break the existing code, I think you would be guaranteed to find the name of every sub that is used in the code somewhere.use strict qw/refs/;
|
|---|