Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: Thoughts on "one function, flexible arguments"?

by hornpipe2 (Sexton)
on Sep 01, 2019 at 02:18 UTC ( #11105363=note: print w/replies, xml ) Need Help??

in reply to Re: Thoughts on "one function, flexible arguments"?
in thread Thoughts on "one function, flexible arguments"?

I did some further research on Perlmonks, and found that there are pros and cons to accepting hashref vs listified hash. For example if you make an error in building your hash: one dies at compile-time, the other at run-time.

I also went out to MetaCPAN and checked the most popular modules list. Using this (highly unscientific) method I determined that most module authors (LWP::UserAgent, DateTime) have gone with listified hash, instead of hashref. So, that is what I'll stick to as well.

  • Comment on Re^2: Thoughts on "one function, flexible arguments"?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2020-12-04 05:51 GMT
Find Nodes?
    Voting Booth?
    How often do you use taint mode?

    Results (58 votes). Check out past polls.