Re: Data structure key as a literal string

2006-04-06 Thread Chas Owens
On 4/6/06, Jeff Pang <[EMAIL PROTECTED]> wrote: > > > >You should consider RTFM'ing. > > > Hello,what's RTFM then? snip Read The Furnished Materials Read The Fine Manual Read The F'ing Manual etc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Data structure key as a literal string

2006-04-06 Thread Jeff Pang
> >You should consider RTFM'ing. > Hello,what's RTFM then? -- Jeff Pang NetEase AntiSpam Team http://corp.netease.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Data structure key as a literal string

2006-04-06 Thread Chas Owens
On 4/6/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > On Thu, 2006-06-04 at 19:48 -0700, Randal L. Schwartz wrote: > > Perl interpreter: me reading the answer to them from the Fine Manual. > > OK, I'll bite. What's a 'Fine Manual?" (You're not going to charge me > money for this, are you?) sni

Re: Data structure key as a literal string

2006-04-06 Thread Mr. Shawn H. Corey
On Thu, 2006-06-04 at 19:48 -0700, Randal L. Schwartz wrote: > Perl interpreter: me reading the answer to them from the Fine Manual. OK, I'll bite. What's a 'Fine Manual?" (You're not going to charge me money for this, are you?) -- __END__ Just my 0.0002 million dollars worth, --- Shawn

Re: Data structure key as a literal string

2006-04-06 Thread Randal L. Schwartz
> "Ryan" == Ryan Gies <[EMAIL PROTECTED]> writes: Ryan> Now I'm confused, what's the difference between a Perl interrupter and a Ryan> Perl interpreter? Or, what perldoc is that info in? Perl interrupter: someone who IM's me with a Perl question. Perl interpreter: me reading the answer to th

Re: Data structure key as a literal string

2006-04-06 Thread Mr. Shawn H. Corey
On Thu, 2006-06-04 at 16:06 -0500, JupiterHost.Net wrote: > my $fruit = $hash->{'food'}{'fruit'}[0]; > print "Name: $fruit->{'name'}\n", "Color: $fruit->{'color'}\n"; That should be: my $fruit = $hash{'food'}{'fruit'}[0]; 'hash' is a real hash, not a reference. -- __END__ Just my 0.000

Re: Data structure key as a literal string

2006-04-06 Thread Mr. Shawn H. Corey
On Thu, 2006-06-04 at 14:38 -0700, Ryan Gies wrote: > Now I'm confused, what's the difference between a Perl interrupter and a > Perl interpreter? Or, what perldoc is that info in? Oops. You are correct. That should have been 'interpreter'. -- __END__ Just my 0.0002 million dollars worth

Re: Data structure key as a literal string

2006-04-06 Thread Ryan Gies
Now I'm confused, what's the difference between a Perl interrupter and a Perl interpreter? Or, what perldoc is that info in? Thanks Mr. Shawn H. Corey wrote: On Thu, 2006-06-04 at 13:10 -0700, Ryan Gies wrote: With the intention of optimization, I am looking for a way around using *eval* in

Re: Data structure key as a literal string

2006-04-06 Thread JupiterHost.Net
Ryan Gies wrote: With the intention of optimization, I am looking for a way around using *eval* in the below snippet at line 19: my $value = eval $key; The objective is to get from $key to $value, knowing that $key is a literal string. Thank you for an insights! #!/usr/bin/perl -w

Re: Data structure key as a literal string

2006-04-06 Thread Mr. Shawn H. Corey
On Thu, 2006-06-04 at 13:10 -0700, Ryan Gies wrote: > With the intention of optimization, I am looking for a way around using > *eval* in the below snippet at line 19: > > my $value = eval $key; Please say this is a late April Fool's joke. Your suggested use of eval is not optimal. This is