in reply to Re^2: Evaluating a regex replacement value
in thread Evaluating a regex replacement value

Thanks :)

This is a nice, clean option and is what I've settled on.
$line =~ s/<:KEYWORD:([^:>]*):?>/int($value * ($1 || 1))/e;
The not chomp'ing was never an issue, as I wasn't explicity adding newlines to the output.

heh... I've just been browsing through my copy of Perl Best Practices, and realised that I should abstract my KEYWORD<=>$values pairs into a lookup hash.... so I'm off to do that now :)

Thanks again,
--Darren