On Mon, Jul 25, 2005 at 05:58:06PM -0400, Ivan Tubert-Brohman wrote:
> The effect of this patch is that you can now use
> 
>   perldoc -a '$_'
> 
> to look for $_ in perlvar.
> 
> I'm not entirely happy with the letter I chose ('a'). Obviously -v or -V 
> would be easier to remember, but they were both taken, and they are 
> frequently associated with verbosity and version anyway. I chose 'a' 
> because its the next letter in vAriable, but if you can come up with 
> something better I'm all ears. I also considered making -f look at both 
> perlfunc and perlvar, but that is questionable because, of course, 
> variables are not functions. ;-)

--var?

This cracks open --foo style configs in perldoc, but if its getting that
hard to wedge in new features maybe its time they did so and recovered some
of the less used single letter options, like -w -n -d -o -M and -X, by
moving them to --foo style.

perldoc is currently using over half the alphabet as switches.


-- 
Michael G Schwern     [EMAIL PROTECTED]     http://www.pobox.com/~schwern
Just call me 'Moron Sugar'.
        http://www.somethingpositive.net/sp05182002.shtml

Reply via email to