Re: accessor problem in OO

2006-05-28 Thread D. Bolliger
Peter Cornelius am Montag, 29. Mai 2006 05.30: > On May 27, 2006, at 3:56 PM, chen li wrote: > > Based on what I learn the regular method to defer a > > hash reference to get specific value takes this > > format: > > > > $ref_hash->{key1} > > > > but in this line > > $_[0]->{_name}= $_[1] if define

Re: regex extraction problem

2006-05-28 Thread John W. Krahn
Chad Perrin wrote: > On Sun, May 28, 2006 at 03:08:07PM -0700, John W. Krahn wrote: >>tom arnall wrote: >>>On Sunday 28 May 2006 12:20 am, John W. Krahn wrote: tom arnall wrote: >the following code: > > $_='abcd'; > @f = /(x)(y)|(a)(b)/; > >makes the first two cells

Re: accessor problem in OO

2006-05-28 Thread Peter Cornelius
On May 27, 2006, at 3:56 PM, chen li wrote: Based on what I learn the regular method to defer a hash reference to get specific value takes this format: $ref_hash->{key1} but in this line $_[0]->{_name}= $_[1] if defined $_[1] the format is array element->{_name} Yes, the contents of the a

Re: regex extraction problem

2006-05-28 Thread Chad Perrin
On Sun, May 28, 2006 at 03:08:07PM -0700, John W. Krahn wrote: > tom arnall wrote: > > On Sunday 28 May 2006 12:20 am, John W. Krahn wrote: > >>tom arnall wrote: > >>>the following code: > >>> > >>> $_='abcd'; > >>> @f = /(x)(y)|(a)(b)/; > >>> > >>>makes the first two cells of '@f' to be undefi

Re: regex extraction problem

2006-05-28 Thread John W. Krahn
tom arnall wrote: > On Sunday 28 May 2006 12:20 am, John W. Krahn wrote: >>tom arnall wrote: >>>the following code: >>> >>> $_='abcd'; >>> @f = /(x)(y)|(a)(b)/; >>> >>>makes the first two cells of '@f' to be undefined, then puts 'a' and 'b' >>>in the third and fourth cells. how do i get the

Re: regex extraction problem

2006-05-28 Thread tom arnall
On Sunday 28 May 2006 12:20 am, John W. Krahn wrote: > tom arnall wrote: > > the following code: > > > > $_='abcd'; > > @f = /(x)(y)|(a)(b)/; > > > > makes the first two cells of '@f' to be undefined, then puts 'a' and 'b' > > in the third and fourth cells. how do i get the system to put 'a

Re: regex extraction problem

2006-05-28 Thread John W. Krahn
tom arnall wrote: > the following code: > > $_='abcd'; > @f = /(x)(y)|(a)(b)/; > > makes the first two cells of '@f' to be undefined, then puts 'a' and 'b' in > the third and fourth cells. how do i get the system to put 'a' and 'b' in the > first two cells and to produce no un