$_ = join ',', grep { $_ ne '42' } split ','; [download]
In reply to Re: Howto strip 42 from comma separated list using s/// by ikegami in thread Howto strip 42 from comma separated list using s/// by ady