in reply to Removing Single Quote Problem

A better tool for removing characters when you don't need regular expressions is tr///.
$item->{'description'} =~ tr/\n'//d;
But your s/// expression should be removing it. Are you sure it's not a "smart quote"?

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: Removing Single Quote Problem
by halley (Prior) on Feb 10, 2005 at 19:49 UTC
    Watch out for removing newlines willy-nilly. In HTML spans, a newline and a space are equivalent.

    Removingthe newlineswhere thereis noother whitespacewill givesome poorresults.

    --
    [ e d @ h a l l e y . c c ]