NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Choices (Score:2)
--
xoa
Reply to This
Re:Choices (Score:2)
It would be much better to use the
Text::Abbrevmodule (it's part of the core). It'll create unique abbreviations. Of course the code would be a little more convoluted:(or something like that - completely untested and of my hat)
Re:Choices (Score:2)
Or, rather than filling the hash with small keys, make a smarter dispatcher:
Mmm, $cmd, @cmd and %cmd used in 3 lines... That's one point in the Perl purity test. :-)