Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Why does this work? AUTOLOAD sans sub declaration

by batkins (Chaplain)
on Nov 10, 2003 at 20:50 UTC ( #305969=note: print w/replies, xml ) Need Help??


in reply to Why does this work? AUTOLOAD sans sub declaration

That is indeed odd. Try putting a semicolon on the line that defines do_something.

Still odd even if that does fix it.

Are you sure it was a book? Are you sure it wasn't.....nothing?
  • Comment on Re: Why does this work? AUTOLOAD sans sub declaration

Replies are listed 'Best First'.
Re: Re: Why does this work? AUTOLOAD sans sub declaration
by chromatic (Archbishop) on Nov 10, 2003 at 22:44 UTC

    Named subroutine definitions aren't expressions. They don't need semicolons after the block.

      Yeah, you're absolutely right. I think I was thinking of prototypes.

      Are you sure it was a book? Are you sure it wasn't.....nothing?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-12-10 05:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?