in reply to Re^2: What's your favourite method of untainting?
in thread What's your favourite method of untainting?

... : die 'Invalid value of tainted $bar: ' . $bar;
(though I'm not sure why you have $bar twice in the error message...)

First $bar is within single quotes, so not interpolated; second $bar is interpolated. die message will look like this:

Invalid value of tainted $bar: tainted_bar_value ...

— Ken