in reply to Howto strip 42 from comma separated list using s///

You could use split instead:
$_ = join ',', grep { $_ ne '42' } split ',';