Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re:x2 Ordering hash replacements to avoid clobbering thingsby grinder (Bishop) |
on Feb 26, 2003 at 16:17 UTC ( [id://238813]=note: print w/replies, xml ) | Need Help?? |
I'm not interested in regexps as I'm not working with strings. This is being used to update database fields, so unless you're doing some really fancy tie-ing, regexps aren't gonna fly :) For reference, the heart of the code that uses this snippet looks like this:
NB: The above code is condensed from production code. I have excised things that have no relevance to the example, so it just may or may not compile :) print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'
In Section
Cool Uses for Perl
|
|