Ok, I have a package
package blah;
{
sub foo {
print "I do not understand perl"
return 5;
}
}
Now, how do I call this function from outside the package?
I have written this:
$perlversion = blah::->foo;
but it doesn't work, it asks for explicit package name.
Please help.
-Nick
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
- Re: method calls outside the package Nick Transier
- Re: method calls outside the package Jeff 'japhy' Pinyan
- HELLO, I am new... X-) Sebadamus
- Re: HELLO, I am new... X-) Chas Owens
- Re: HELLO, I am new... X-) Michael Fowler
- Re: HELLO, I am new... X-) Chas Owens
- Re: method calls outside the package Nick Transier
- Re: method calls outside the package Chas Owens
