in reply to Re: Strip filenamein thread Strip filename
$ans =~ y/[[:space:][:cntrl:]]//d; [download]
Is there any alternative for this
Yes: $ans =~ s/[[:space:][:cntrl:]]//g;