in reply to Re: return stripped characters
in thread return stripped characters

Hi sorry but I cannot get this to work
$stripped=""; $salutation =~ s/(\(.*?\))/$stripped .= $1;''/e; print $stripped;
$salutation is stripped as usual but $stripped is empty!

Replies are listed 'Best First'.
Re^3: return stripped characters
by cog (Parson) on Apr 26, 2005 at 16:10 UTC
    It does work for me... What are you putting in $salutation?

    By the way, when I said "predeclare", I meant with my or our. I assume you're not using strict. You should.