in reply to Re: how to find the original sub definition
in thread how to find the original sub definition
#!/usr/bin/perl package XYZ; use warnings; use strict; use Pod::Usage; { my $PrivateLexicalData; sub do_something_useful { ... } } # End of private lexial scope sub test { do_something_useful(3) == 2 or die; print "Tests complete\n." exit(0); } if (not defined caller()) { scalar @ARGV == 0 and pod2usage(); grep { m/-test/i } @ARGV and test(); } 1; =head1 NAME ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to find the original sub definition
by Anonymous Monk on Dec 22, 2010 at 19:54 UTC |