On Tue, Apr 21, 2009 at 20:00, Kelly Jones <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
