I have a package and an external Perl script. They are both mutually exclusive. But, I would like to modify my package and have it reach into the script to see if a function exists.
For example,
foo.pl ------ #! /usr/bin/perl sub func1() { } sub func2() { } 1;
In my package, I would like to do something like
my $ref_to_sub = \&func1;
Is this possible.
Thanks.
In reply to reaching into a perl script from a package by Brad.Walker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |