chomp( @files = @ARGV ? grep { -f $_ } @ARGV : <> );This chomps after you do the file test, with the newline not yet removed. So, it will just produce an empty array, when reading the file list from the input, because -f $_ will always return false.
In reply to Re^2: Writing unix-style filters
by bart
in thread Writing unix-style filters
by njcodewarrior
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |