Almost right. Try:
@CLEANED = map{ tr/\000//d; $_ } @EMPLOYEES;
But do note that will also modify @EMPLOYEES. If you don't want that, you could do:
@cleaned = @employees; tr/\000//d for @cleaned;
And if you're happy to clean employees in place, omit the copy and operate directly on @employees.
In reply to Re: Remove nulls, or other Chars
by BrowserUk
in thread Remove nulls, or other Chars
by Saved
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |