makamaka / Text-CSV

comma-separated values manipulator
24 stars 19 forks source link

Usage example in error message incomplete. Just warn about undef instead. #53

Open jidanni opened 3 years ago

jidanni commented 3 years ago
$ cat e
use Text::CSV qw( csv );
my $aoa;
csv (in => $aoa, out => "file.csv");
$ perl -w e
usage: my $aoa = csv (in => $file); at e line 3.

Here according to the usage message, it looks like "in" can only be used with files. But in fact it can be used with much more.

The problem is an undef $aoa. So it should in fact warn about that instead.