Hello,
$Bill, thanks for your code. I noticed one strange thing: Compare
the output of running the code with the arguments "-a perldoc" and
just "perldoc". In the -a case, the output is raw pod.
Another thing I found is that the scheme of assigning a variable
to STDOUT and STDERR does
$Bill Luebkert wrote:
> (my $prog = $0) =~ s/^.*[\\\/]//;
> my $usage = <
> Usage: $prog [-d] [-a] [-f] [-q] [-s] []
>
> -d debug (-d=2 for perldoc debug)
> -a if present perform the following logic, else call perldoc
> with and return result of first success
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 w
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 off,
=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 on