Re: Package variables allowed?

2003-09-30 Thread Wiggins d'Anconia
Because you seem to have been asking several questions about scoping and packages, etc. I found the following link extremely enlightening when first tackling this subject: http://perl.plover.com/FAQs/Namespaces.html http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: Package variables allowed?

2003-09-30 Thread perl
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 thi

Package variables allowed?

2003-09-30 Thread perl
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=