Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 scrutinizing the Monastery: (4)
As of 2023-10-04 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?