Hi there. What's the best way to refer to a function inside a package from within the package functions itself?
I haven't worked with modules much until now, so I've been writing:
package myPackage; sub function1{ #do stuff myPackage->function2($thing) #do stuff } sub function2{ #do stuff }
Does Perl provide a better way to do it?
In reply to Using functions from their own package by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |