Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You could easily take this one step further and give it the ability to then accept which command the user meant (like some shells do). By changing the 'ambiguous match' (you have it 'ambigous', BTW) part to create a hash. Actually, if you make @matched into %matched with the structure of:
You could then make the 'ambiguous match' section as which was meant.. ie..
The user would then enter 1 or 2, you read it on STDIN, and run the correct sub. Just an idea :)
Cheers, In reply to RE: Minimum command length matcher
by KM
|
|