Suresh Govindachar wrote:
I have been trying to not die when calling perldoc,
but the code below keeps dying inside perldoc.
The code below does show that eval is happening
at runtime, and that the syntax used for shutting
off __DIE__ does work when perldoc is not involved.
Hi,
First
Suresh Govindachar wrote:
=head
Hello,
I have been trying to not die when calling perldoc,
but the code below keeps dying inside perldoc.
The code below does show that eval is happening
at runtime, and that the syntax used for shutting
off __DIE__ does work when
$Bill Luebkert wrote:
(my $prog = $0) =~ s/^.*[\\\/]//;
my $usage = EOD;
Usage: $prog [-d] [-a] [-f] [-q] [-s] [args]
-d debug (-d=2 for perldoc debug)
-a if present perform the following logic, else call perldoc
with arglist and return result of
=head
Hello,
I have been trying to not die when calling perldoc,
but the code below keeps dying inside perldoc.
The code below does show that eval is happening
at runtime, and that the syntax used for shutting
off __DIE__ does work when perldoc is not involved.
So how can