Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

(tye)Re: Is it there, or is it not?? Quirkiness with error handling.

by tye (Sage)
on Jul 12, 2002 at 20:47 UTC ( #181397=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2023-12-07 10:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (32 votes). Check out past polls.

    Notices?