Re: method calls outside the package

2001-06-20 Thread Chas Owens
eply-To: [EMAIL PROTECTED] > >To: Nick Transier <[EMAIL PROTECTED]> > >CC: [EMAIL PROTECTED] > >Subject: Re: method calls outside the package > >Date: Wed, 20 Jun 2001 15:53:50 -0400 (EDT) > > > >On Jun 20, Nick Transier said: > > > > >package b

Re: method calls outside the package

2001-06-20 Thread Nick Transier
I tried that, same error. "$perlversion requires explicit package name" >From: Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: Nick Transier <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: method calls outside the

Re: method calls outside the package

2001-06-20 Thread Jeff 'japhy' Pinyan
On Jun 20, Nick Transier said: >package blah; >{ >sub foo { > print "I do not understand perl" Missing a semicolon above... > return 5; >} >} > >Now, how do I call this function from outside the package? blah::foo() will work. >$perlversion = blah::->foo; That works too, but kind

method calls outside the package

2001-06-20 Thread Nick Transier
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