Re: Package require question again

2005-09-19 Thread Jeff 'japhy' Pinyan
On Sep 17, Luinrandir said: ok I have the program working again. but how do I get a var from the package? and the cgi calls the var in the package like this my $V = $main::{$Player{Location} . ::}{Options}; What does that return to you? A glob. And a glob is like a reference to every data

Re: Package require question again

2005-09-19 Thread Luinrandir
- Original Message - From: Jeff 'japhy' Pinyan [EMAIL PROTECTED] To: Luinrandir [EMAIL PROTECTED] Cc: beginners@perl.org Sent: Monday, September 19, 2005 6:43 AM Subject: Re: Package require question again my $g = $main::{$Player{Location} . ::}{Options}; my $value = $$g

Re: Package require question again

2005-09-19 Thread Chris Devers
On Mon, 19 Sep 2005, Luinrandir wrote: From: Jeff 'japhy' Pinyan [EMAIL PROTECTED] my $g = $main::{$Player{Location} . ::}{Options}; my $value = $$g; is the double $$ in $$g a mistake or real? It's real. He's dereferencing that which $g refers to. Read up on references. --

RE: Package require question again

2005-09-19 Thread Charles K. Clarkson
Luinrandir mailto:[EMAIL PROTECTED] wrote: : : is the double $$ in $$g a mistake or real? Real. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Package require question again

2005-09-19 Thread Jeff 'japhy' Pinyan
On Sep 19, Luinrandir said: From: Jeff 'japhy' Pinyan [EMAIL PROTECTED] my $g = $main::{$Player{Location} . ::}{Options}; my $value = $$g; or, as one line: my $value = ${ $main::{$Player{Location} . ::}{Options} }; is the double $$ in $$g a mistake or real? If it was a typo,

Package require question again

2005-09-17 Thread Luinrandir
I want to thank everyone who has helped me with this. and I'm trying to remember to bottom post ok I have the program working again. but how do I get a var from the package? At the time you are reading this I am still experimenting wih the following: the package has this line in it.