Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by kraai (8503) on 2008.04.23 10:14 (#62378) Homepage
    How about omitting the switch altogether and using searching for variables if the argument begins with a '$': "perldoc '$.'". I assume that there aren't many (or any?) page, module, or program names that begin with a '$'.
    • Oops. I didn't see before that perlvar also documents some variables that begin with @ and %, but perldoc would need to handle those too.