Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Ordering hash replacements to avoid clobbering thingsby Hofmator (Curate) |
on Feb 26, 2003 at 17:04 UTC ( [id://238843]=note: print w/replies, xml ) | Need Help?? |
Here goes, interesting little problem ... my solution is non-recursive, can handle loops and allows to write my @order = demangle(\%replace);.
Update
After sleeping over it I've greatly simplified the algoritm, now I think it's elegant.
-- Hofmator
In Section
Cool Uses for Perl
|
|