Re: autoabbrev algorithm from Getopt::Long

2009-02-22 Thread Johan Vromans
[Quoting Ken Williams, on February 22 2009, 06:55, in "Re: autoabbrev algor"] > You should have a look at R (http://www.r-project.org/) and its > calling conventions. Named parameters to functions can typically > (though not always) be abbreviated. How does it handle ambiguousness introduced by a

Re: autoabbrev algorithm from Getopt::Long

2009-02-22 Thread Ken Williams
On Fri, Feb 13, 2009 at 8:05 AM, Johan Vromans wrote: > Abbreviations are for people typing input (in general, commands). > Using abbreviations in programs and script is a bad idea and asking > for troubles. You should have a look at R (http://www.r-project.org/) and its calling conventions. Nam

Re: Text::Abbrev (was: autoabbrev algorithm from Getopt::Long)

2009-02-13 Thread Eric Wilhelm
# from Bill Ward # on Friday 13 February 2009 11:08: >> What's wrong with Text::Abbrev?  It's been part of the core for a >> long time. > >That might be the thing I'm looking for, thanks. It does appear to have an issue with not detecting ambiguous abbreviations. my %hash = abbrev(qw(dog door

Re: autoabbrev algorithm from Getopt::Long

2009-02-13 Thread Bill Ward
On Fri, Feb 13, 2009 at 6:22 AM, Darren Chamberlain wrote: > On Fri, Feb 13, 2009 at 09:05, Johan Vromans wrote: > >> I could just extract the code from Getopt::Long but I think it would > >> be a useful thing to have as a CPAN module... > > > > No problem with that, but since this is only suppos

Re: autoabbrev algorithm from Getopt::Long

2009-02-13 Thread Aldo Calpini
Darren Chamberlain wrote: What's wrong with Text::Abbrev? It's been part of the core for a long time. if you ask what's wrong, that's the POD. the name is set to 'abbrev', it sort of even breaks search.cpan.org. I guess many don't know about the module for this reason :-) cheers, Aldo

Re: autoabbrev algorithm from Getopt::Long

2009-02-13 Thread Darren Chamberlain
On Fri, Feb 13, 2009 at 09:05, Johan Vromans wrote: >> I could just extract the code from Getopt::Long but I think it would >> be a useful thing to have as a CPAN module... > > No problem with that, but since this is only supposed to assist > typing, would't looking at readline completions be a be

Re: autoabbrev algorithm from Getopt::Long

2009-02-13 Thread Johan Vromans
[Quoting Bill Ward, on February 12 2009, 16:15, in "autoabbrev algorithm"] > Do you know of any Perl module that provides the algorithm used in > Getopt::Long to implement the automatic abbreviation feature? I'd like to > have that feature available for not just command-line arguments, but > subro

autoabbrev algorithm from Getopt::Long

2009-02-12 Thread Bill Ward
Johan and/or CPAN module authors: Do you know of any Perl module that provides the algorithm used in Getopt::Long to implement the automatic abbreviation feature? I'd like to have that feature available for not just command-line arguments, but subroutine arguments in modules that I write. I coul