Subject: | Magic <> should be a warning |
All uses of <>, readline(ARGV), <ARGV> should be a warning. This uses
a two-arg open internally which means that if it was ever given a file
named something heinous, perl would do bad things.
chomp( my $out = <> );
while (<>) {
chomp;
$out .= ", $_";
}
print $out, "\n";