in reply to pod2usage not displaying the pod document information for verbose level 0 & 1 on LINUX

Running with -h, -help, and --help all give me the synopsis section from the POD. What do you want/expect it to do? What does it do for you instead?

  • Comment on Re: pod2usage not displaying the pod document information for verbose level 0 & 1 on LINUX
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: pod2usage not displaying the pod document information for verbose level 0 & 1 on LINUX
by isha (Sexton) on Feb 01, 2008 at 05:09 UTC
    Hi Kyle,
    When i ru nthe script with
    > test.pl -h
    > test.pl --help
    > test.pl -help

    It is not showing me anything on the prompt. but when i run it with -man it is opening the man page.
    Did u try running this script in Linux?
    Also, when I tried with the -input=>"./help.pm" for help option it is showing me the SYNOPSIS from help.pm file. but without -input=>"./help.pm" (POD in current) it is not working... Is there anything wrong with POD? Please help me...
      Say, after you remove the 5 some spaces on the line after =item B<-p> <path>, does pod2usage() works as expected? That is what podchecker(1) reported anyway (in spite of which "Usage:" is being printed here as expected with perl 5.8.7 (on GUN/Linux)).
        I have run the podchecker & resolved all the warnings but still the script is not working for "test.pl -help". It is only working for verbose level 2.