in reply to POD for .pl file ?

I have a feeling you're not having trouble putting the POD into the .pl file, but are confused as to how you are going to read it once it's in there.

If that's the case, perldoc -F filename.pl will work. (Note that the "F" is capital.)

---
It's all fine and dandy until someone has to look at the code.

Replies are listed 'Best First'.
Re^2: POD for .pl file ?
by xdg (Monsignor) on May 16, 2006 at 16:11 UTC

    The -F generally isn't even needed. perldoc filename.pl will work just fine.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      True, as long as the script is in the user's $PATH. perldoc searches $PATH as well as @INC so it can read the POD in the utility scripts that come with perl, including perldoc itself.