in reply to Re: Calling a sub from a variable ?
in thread Calling a sub from a variable ?

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^3: Calling a sub from a variable ?
by johndageek (Hermit) on Mar 22, 2005 at 13:26 UTC
    Why so surly Zur?
    You did ask for advice in a way that had people responding.
    You got responses
    You didn't care for a response/someone didn't respond the way you wanted them to so, now you jump on them?
    Your last line should have been your first in this response
    I know, I know, you don't need me to boss you around etc., I here by acknowledge myself appropriately chastised.

    Enjoy!
    Dageek

      I know , I tend to be a little bit on the agressive side sometimes, but i was the one feeling jumped upon.
      Maybe one should be carefull before giving such advice ...
      "Walk a mile in my shoes ..."
      And you do note that the IO comment is interesting but wrong .
      i know it's no reason to get nervous, i'm just over-reactive sometimes ... well

      Keep the spirit,
      zen le renard

        And you do note that the IO comment is interesting but wrong .

        Actually, the I/O comment by AnonyMonk is correct in most situations. Now, it may not be correct in your specific setup, but I would have done some Benchmarks before making an offhand comment like that. Or, maybe I would have used Devel::DProf to determine what was taking up a lot of time in my application - I/O or eval.

        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.

cool off ... and let's do some benchmarks
by inq123 (Sexton) on Mar 22, 2005 at 16:06 UTC
    Hi, ZlR,

    First, cool off (I'm not trying to boss you around saying that). Even if the poster is an anonymous monk, the person's still trying to help, isn't it?

    Additionally, although you follow Larry Wall's camel book well, you forgot to follow the last suggestion in "User Efficiency" section, Chapter 24 (page 603 in 3rd version), right?

    Now back to business, let's do some benchmark:

Re^3: Calling a sub from a variable ?
by Anonymous Monk on Mar 22, 2005 at 15:06 UTC
    OTOH thanks for the "eval" advice but in my camel book performance chapter 24 point 6 it says avoid eval on a string and in a loop. Here we're doing both. So now i really wonder who i should believe, some anonymous guy on a forum or a book written by Larry Wall . Gee, that's a tough one ...
    If you've already decided to take the advice of Larry Wall, why did you bother to ask?
    Also your understanding of IO is wrong : it's much more likely that the module data will already be in memory since we have a lot of files to process for each module function.
    Yeah, whatever. It's always useful to not tell important details of the problem you are enquiring about, and to be bitchy if an answer you get didn't consider this detail.
    A reply falls below the community's threshold of quality. You may see it by logging in.