in reply to Re: Re: Is it there, or is it not?? Quirkiness with error handling.
in thread Is it there, or is it not?? Quirkiness with error handling.

Note that you are confusing &mysub; and &mysub(); which are very different. (tye)Re: A question of style goes into these in some detail.

As for avoiding & on subroutine calls, that is, to a great extent, a style issue. Frankly, several of the reasons for using & on subroutine calls (avoid collisions with built-ins, stylistically distinguish user subs from built-ins, uniformity of sigils with other common user-defined items) are much more compelling to me than any of the reasons for not using them: "looks like Perl4" (big deal), "overrides prototypes" (don't use prototypes in most cases).

So I strongly disagree with Aristotle on that point.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: Is it there, or is it not?? Quirkiness with error handling.
by dmmiller2k (Chaplain) on Jul 18, 2002 at 19:45 UTC

    Whoops! That was a typo! Instead of removing the () from &mysub(), I did just the opposite and removed the &.

    In real code, the compiler usually catches stuff like this ... :)

    dmm