How about you show us the code that doesn't work instead of the line of code that does work?
Also Perl seems to dislike the use of !. It says void context: $line !~s/[^[:ascii:]]//g;
The operator !~ only makes sense if you are using the result. It negates the result of the more usual =~ operator. Where as it often makes sense to ignore the result of =~, it never makes sense to ignore != because if you didn't want the result you'd just use =~.
In reply to Re: clean corpus of ascii not a file
by GrandFather
in thread clean corpus of ascii not a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |