http://www.perlmonks.org?node_id=11111514


in reply to Re^6: One to one file output idiom
in thread One to one file output idiom

FWIW, Path::Class::File and IO::Any also use "spew" (old versions of the File::Slurp docs used the term as well); Mojo::File uses "spurt". I think all of these method names are not meant to be taken 100% seriously ;-) (I also found IO::Barf, if you like it more direct)

Replies are listed 'Best First'.
Re^8: One to one file output idiom
by LanX (Archbishop) on Jan 17, 2020 at 14:03 UTC
    As I said, I think "slurp" is the culprit here.

    I'm fine with "spew" cause it's a general term.

    The "vomit" meaning is limited to human context, like in "to make someone spew".

    > I think all of these method names are not meant to be taken 100% seriously ;-)

    Yes, but wrong associations can lead to hard to debug misunderstandings.

    For instance wantarray is true in "list" context.

    This function should have been named wantlist() instead.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice