http://qs321.pair.com?node_id=230331


in reply to Cleaning Data Between Specified Columns

You can use the fact that the return value from substr() is an lvalue and do something like:

{ local *tmp = \substr( $source, $start, $len ); $tmp =~ y/'//d; $tmp =~ y/a-zA-Z0-9\n\|-/ /c; }