Re: [PATCH lib/Pod/Perldoc.pm] search perlvar with perldoc -a

2005-07-26 Thread Ivan Tubert-Brohman

Michael G Schwern wrote:

--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.


Using long options sounds like a good idea. However, I'm not sure if we 
should be removing or changing the meaning of some of existing 
one-letter options. You know, backward compatibility and all that...


--
Ivan


Re: [PATCH lib/Pod/Perldoc.pm] search perlvar with perldoc -a

2005-07-26 Thread Michael G Schwern
On Tue, Jul 26, 2005 at 10:53:40AM -0400, Ivan Tubert-Brohman wrote:
 Using long options sounds like a good idea. However, I'm not sure if we 
 should be removing or changing the meaning of some of existing 
 one-letter options. You know, backward compatibility and all that...

Fortunately the perldoc interface is intended for humans who have a much
better time of adapting to change than computer programs.  For precedent,
the perl debugger interface was recently overhauled in an incompatible way.


-- 
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern
You are wicked and wrong to have broken inside and peeked at the
implementation and then relied upon it.
-- tchrist in [EMAIL PROTECTED]


Re: [PATCH lib/Pod/Perldoc.pm] search perlvar with perldoc -a

2005-07-25 Thread Michael G Schwern
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