Skip to content

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

@jidanni

Description

@jidanni
$ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions