in reply to Simplify constant value determination
should do it. No need for eval or substitution here.use constant REVISION => ('$Id: mcdt.pl 2081 2006-08-25 16:16:27Z tomt +e $' =~ /(\d+)/g);
Update: grr, I don't use g-less m// in list context often enough to remember what it returns.
use constant REVISION => '$Id: mcdt.pl 2081 2006-08-25 16:16:27Z tomte + $' =~ /(\d+)/;