Can a calling program reference a package variable?

It's not working for me.

test.pl
-------
use fruit;

#I want to use this like a stub or struct
#this does not work - it errored
print mystuff::a;
print mystuff::b;

#this work
mystuff::mixIt;


fruit.pm
----------
package mixIt;

$a="apple";
$b="berry";

sub mixIt { ... }


thanks,
-rkl

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to