Hm. Yes. Quite right.
@a = split(/\//,$RegEx);
$m = pop @a;
shift @a;
$s = join("/",@a);
Better?
On the other question, I don't think
eval does it, because it doesn't return the dynamically scoped variables. What I meant by 'requoting' was the kind of thing
abstracts suggested above (which is a fine solution if the problem allows it to work, but seemingly it doesn't). So I think there's no alternative to thuggery.
One of the one-hand-clapping paradoces of perl, as I understand it, is that it encourages us to do what we like with it, including the things it doesn't let us do. Perl lets you parse anything, even perl (or PERL)! Only perl allows something that isn't perl to parse perl!
La lutte continue!
§
George Sherston