in reply to Re^5: The beauty of MMD
in thread Perl 5's greatest limitation is...?
The movie is mostly aimed at showing off lisp's macro abilities, but those to me are pretty old hat - I've been seeing smug lisp weenies praise macros for years - but along the way the programmer casually uses MMD where in perl I'd have to use a bunch of cascading if/elsif blocks or at best a dispatch table. It's not a huge difference, but having seen it in action, it's something I want. Not need, necessarily, but want in the way I really-want-but-can't-quite-justify a new desktop. (It's been a few years; on the other hand, there are other bills that must get paid...)
Think of MMD as yet another way for the language to get out of your way when expressing the solution to a problem.
-- @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/
|
|---|