Re: not getting the syntax

2004-03-17 Thread Jenda Krynicky
> On Fri, 12 Mar 2004, R. Joseph Newton wrote: > > Charlotte Hee wrote: > > > > > $byname{ Owen }{ PHONE } = '999-'; > > > > Should be: > > $byname{ Owen }->{ PHONE } = '999-'; > > are you using strict? The code above should cause an error, not > > just an uninitialized variable warning.

Re: not getting the syntax

2004-03-15 Thread Charlotte Hee
On Fri, 12 Mar 2004, R. Joseph Newton wrote: > > Charlotte Hee wrote: > > > > > For a single record I can see how that works but let's say I have > > 4 or 5 employees and I have the employee information for each one > > (assumed). Now I want to build a record for each employee in a loop like > >

Re: not getting the syntax

2004-03-14 Thread R. Joseph Newton
James Edward Gray II wrote: > On Mar 13, 2004, at 12:36 AM, R. Joseph Newton wrote: > > > Charlotte Hee wrote: > > > >> $byname{ Owen }{ PHONE } = '999-'; > > > > Should be: > > $byname{ Owen }->{ PHONE } = '999-'; > > are you using strict? The code above should cause an error, not just

Re: not getting the syntax

2004-03-13 Thread James Edward Gray II
On Mar 13, 2004, at 12:36 AM, R. Joseph Newton wrote: Charlotte Hee wrote: $byname{ Owen }{ PHONE } = '999-'; Should be: $byname{ Owen }->{ PHONE } = '999-'; are you using strict? The code above should cause an error, not just an uninitialized variable warning. This isn't true. The ar

Re: not getting the syntax

2004-03-12 Thread R. Joseph Newton
Charlotte Hee wrote: > > For a single record I can see how that works but let's say I have > 4 or 5 employees and I have the employee information for each one > (assumed). Now I want to build a record for each employee in a loop like > this: > > @names = ('Jason','Aria','Samir','Owen'); > > fo

Re: not getting the syntax

2004-03-12 Thread John W. Krahn
Charlotte Hee wrote: > > On Thu, 11 Mar 2004, John W. Krahn wrote: > > > > Charlotte Hee wrote: > > > > > > I tried the following but it doesn't work and gives an error. > > > > > > $byname { $record->{"Jason"}->PHONE } = '999-'; # error undefined val > > > > > > I keep looking at the syntax

Re: not getting the syntax

2004-03-12 Thread Charlotte Hee
On Thu, 11 Mar 2004, John W. Krahn wrote: > Date: Thu, 11 Mar 2004 16:33:00 -0800 > From: John W. Krahn <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: not getting the syntax > > Charlotte Hee wrote: > > > > Hello, > > Hello, > > >

Re: not getting the syntax

2004-03-11 Thread John W. Krahn
Charlotte Hee wrote: > > Hello, Hello, > I'm looking at the perl cookbook example on how to create a record data > type: > > $record = { > NAME => "Jason", > EMPNO => 132, > TITLE => "deputy peon", > AGE=> 23, > SALARY => 37_000, > PALS => [ "Norbert", "Rhys"