in reply to Re: Strip filename
in thread Strip filename

Actual culprit is below line which is replacing some of the characters like 'l' or 'c' with null values. Is there any alternative for this...
$ans =~ y/[[:space:][:cntrl:]]//d;

Replies are listed 'Best First'.
Re^3: Strip filename
by almut (Canon) on Dec 22, 2009 at 12:09 UTC
    Is there any alternative for this

    Yes:  $ans =~ s/[[:space:][:cntrl:]]//g;