in reply to Re^2: scope and packages
in thread scope and packages

To be honest, you shouldn't need the manual for this. The constructor for an object should always be called using the arrow notation. Calling something with colons means that you're calling it as a plain subroutine; calling it with an arrow means you're calling it as a method.

--

See the Copyright notice on my home node.

Perl training courses

Replies are listed 'Best First'.
Re^4: scope and packages
by pagod (Initiate) on Jun 26, 2009 at 10:15 UTC
    yup, i guess i should also read the manual about OO-Perl... well, you gotta start somewhere! then again, the error message didn't really make it clear to me what the problem might have been