Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I'd be interested to see
  • what kind of speed penalty your dispatching has
  • what kind of impact it has on caller() and other introspective code
  • if it correctly handles
    sub foo(CGI $cgi) { ... } sub foo(CGI $cgi, ARRAY $arr) { ... }
A few questions:
  • Why do you use ref() (or potentially isa() ...) over Scalar::Util's blessed()? I've had serious issues when HTML::Template used isa() to determine ARRAY when I had overloaded stringification on my object. Using blessed() or can() would have solved that problem ...
  • Is the problem with more than one package in a file your problem or Filter::Simple's problem? If it's F::S's problem, you should state that as a limitation of the engine you're using.
  • Why don't you allow sub foo(@arr) { ... } instead of sub foo(ARRAY $arr) { ... }? Wouldn't that give me the prototype sub foo(@);, allowing me to rewrite push?

And, finally ... why did you use a source filter yourself instead of using Attributes? I would have thought that Attributes would have provided a tested source filter so you could have focused on your core requirements instead of worrying about the source filter yourself.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

In reply to Re: Use method/function signatures with Perl by dragonchild
in thread Use method/function signatures with Perl by Ovid

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (6)
    As of 2018-04-23 16:34 GMT
    Find Nodes?
      Voting Booth?