From: Yves G. <yc....@wa...> - 2008-08-03 22:49:20
|
Le Sunday 03 August 2008 02:26:29 D. Michael McIntyre, vous avez écrit : > but it sounds like just > what the doctor ordered for the Perl-deficient among us. I wrote this tool fast and it's an ugly code. I only hope it's not too much buggy. (I'just fixed a bad bug). I'm going to be away for three weeks now. So I could be of no help before I come back. Moreover I'm not sure my explanations on what the tool does are very clear. Here is a little add on : The call of trigger(A) replacement(A1) replacement(A2) replacement(A3) target(B) replacement(B1) replacement(B2) target(C) replacement(C1) replacement(C2) replacement(C3) is equivalent to something like while ( s/\nA/\nA1\nA2\nA3/ ) { s/\nB/\nB1\nB2\g s/\nC/\nC1\nC2\nC3\g } with variables defined in A usable in Ai, B, Bi, C and Ci variables defined in B usable in Bi only and variables defined in C usable in Ci only. Yves |