Maybe the lines are different? :)
When removing whitespaces in for loop, try to change order of commands to following:
PS. This would be much easier to read if you used <code> tags around Perl code (Writeup Formatting Tips).foreach $item (@xray) { $item =~ s/\s+/ /g; $item =~ s/^ *//g; $item =~ s/ *$//g; }
In reply to Re: Match but ignore white space
by grizzley
in thread Match but ignore white space
by blackbeard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |