Perl-Sensitive Sunglasses | |
PerlMonks |
Re^4: Best way to keep script with generated outputby benizi (Hermit) |
on Dec 09, 2009 at 03:10 UTC ( [id://811856]=note: print w/replies, xml ) | Need Help?? |
Huh. Cool. Yeah, that would work (via perl -x ~/.XCompose-ordering). Apparently there aren't any ill effects from even adding the following to .XCompose-ordering:
But I suspect this is just a consequence of .XCompose files just ignoring ill-formed lines. (and not because it accepts multi-line strings -- note that I embedded several double-quotes.) Another interesting approach I tried was to simply add the following header:
~/bin/updater was:
(NB. this doesn't make a backup like the other way.) That way, I can make .XCompose-ordering itself executable, and then simply run it to regenerate it. But, it has the advantage that it works for any file format that uses '#' comments.
In Section
Seekers of Perl Wisdom
|
|