Never mind, I figured it out by put add the $ infront like:

> print $mystuff::a;
> print $mystuff::b;

Hope this help any newbies getting into package.
-rkl

> 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]
>
>


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

Reply via email to