in reply to Re: Passing subroutines as arguments
in thread Passing subroutines as arguments

Which form you choose is a matter of style. Uhh - not quite. &FOO and FOO() do different things with @_ and barewords. While the latter isn't a concern here, the former might be. YMMV.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

  • Comment on Re: Re: Passing subroutines as arguments

Replies are listed 'Best First'.
Re: Re: Re: Passing subroutines as arguments
by dws (Chancellor) on May 08, 2003 at 20:01 UTC
    Uhh - not quite. &FOO and FOO() do different things with @_ and barewords.

    Noting that &FOO and FOO() behave differently is fine, but please don't use the pretense of objecting to something that I didn't write. I didn't (and don't) recommend the &FOO form except under very contorted circumstances.

Re: Re: Re: Passing subroutines as arguments
by linux454 (Pilgrim) on May 09, 2003 at 14:03 UTC
    In Response to dragonchild's post:
    I think in this instance you may have wanted to post how they behave differently, as the peson who posted the question is obviously not going to realize this difference.

    When one criticizes another's reply to a post, it is considered good manners to explain oneself fully instead of giving very terse comments. As this behaviour could be misconstrued to be argumentative and counterproductive.