s/[\N{NBSP}\P{Print}]//g #### use utf8; #### use open ':std', ':encoding(UTF-8)';