Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^6: One to one file output idiom

by LanX (Archbishop)
on Jan 17, 2020 at 05:02 UTC ( #11111511=note: print w/replies, xml ) Need Help??


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

After second thought ...

It's "slurp" - eating noisily - which is the misnomer.

To gulp would be a more accurate description for devouring a whole file.

Spew would fit then.

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

Replies are listed 'Best First'.
Re^7: One to one file output idiom
by haukex (Chancellor) on Jan 17, 2020 at 08:03 UTC

    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)

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11111511]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2020-02-28 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (127 votes). Check out past polls.

    Notices?