On Tue, Apr 21, 2009 at 20:00, Kelly Jones <kelly.terry.jo...@gmail.com> wrote:
> I want to do "function completion". If I have functions called where()
> and which(), I want whe() to call where(), whi() to call which(), and
> wh() to return something like "Ambigious: where() and which() both
> match wh()".
>
> What's the best/easiest way to do this?
snip

This is a bad idea, but you should be able to achieve this through
the AUTOLOAD[1] functionality.

1. http://perldoc.perl.org/perlsub.html#Autoloading

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to