You're trying to be too clever (edit: in that you likely don't need the return value of chomp):
my $names = join '|', map { chomp; $_ } <STDIN>;In reply to Re: return value of chomp is false?
by chromatic
in thread return value of chomp is false?
by babel17
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |