Re: Class::Struct: Can't access struct field elements

2006-04-11 Thread Lawrence Statton
> Though I'm making progress (thanks guys) I'm still having a problem > with dereferencing the struct elements. I've re-read the section on > References in Programming Perl and I thought what I was doing was > correct, but I can't print out the values correctly. Here's a > simplified version of wh

Re: Class::Struct: Can't access struct field elements

2006-04-11 Thread D. Bolliger
Ed am Dienstag, 11. April 2006 21.50: > Though I'm making progress (thanks guys) I'm still having a problem > with dereferencing the struct elements. I've re-read the section on > References in Programming Perl and I thought what I was doing was > correct, but I can't print out the values correctl

Re: Class::Struct: Can't access struct field elements

2006-04-11 Thread Ed
Though I'm making progress (thanks guys) I'm still having a problem with dereferencing the struct elements. I've re-read the section on References in Programming Perl and I thought what I was doing was correct, but I can't print out the values correctly. Here's a simplified version of what I'm try

Re: Class::Struct: Can't access struct field elements

2006-04-10 Thread Jay Savage
On 4/10/06, Jay Savage <[EMAIL PROTECTED]> wrote: > On 4/10/06, Ed <[EMAIL PROTECTED]> wrote: > > Thanks guys! > > > > I've been reading everything I can about Perl and although I've read > > Learning Perl, and have been referencing Programming Perl, The Perl > > CookBook, Modern Perl Programming

Re: Class::Struct: Can't access struct field elements

2006-04-10 Thread Ed
Thanks guys! I've been reading everything I can about Perl and although I've read Learning Perl, and have been referencing Programming Perl, The Perl CookBook, Modern Perl Programming and using the Perl Debugger mini book, I must say, there's alot about Perl I don't yet understand. All I know so

Re: Class::Struct: Can't access struct field elements

2006-04-10 Thread Jay Savage
On 4/10/06, Ed <[EMAIL PROTECTED]> wrote: > Thanks for the reply. > > Yes, I see I fat fingered the owner/some_owner variable. > > It does compile on my system (if I omit use strict). I should add that > I'm running Perl 5.6.1 because some of the code I'm maintaining needs > this version. > > Exce

Re: Class::Struct: Can't access struct field elements

2006-04-10 Thread D. Bolliger
D. Bolliger am Montag, 10. April 2006 22.28: [...] > > print "addrs: @some_addrs"; > > my @some_addrs = join ', ', @{$store->addrs}; My apologies, I pasted the wrong line. I meant: print "addrs: ", (join ', ', @{$store->addrs}), "\n"; Dani -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Class::Struct: Can't access struct field elements

2006-04-10 Thread D. Bolliger
Ed am Montag, 10. April 2006 20.56: > I'm trying to use the Class::Struct to create some C-Like structs but > I'm unable to dereference any array elements in the struct. I'm > admittedly a Perl newbie trying to map my C programming experience > into Perl so it's possible I'm "thinking in C" rathern

Re: Class::Struct: Can't access struct field elements

2006-04-10 Thread Ed
sn't compile. Also, you've mistyped one > of the variables. You should always "use strict" and "use warnings" to > avoid this kind of thing. > > Can't call method "name" on an undefined value at > P:\Carnivore\Caymen\struct.pl line 24

RE: Class::Struct: Can't access struct field elements

2006-04-10 Thread Timothy Johnson
method "name" on an undefined value at P:\Carnivore\Caymen\struct.pl line 24. -Original Message- From: Ed [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 11:57 AM To: beginners@perl.org Subject: Class::Struct: Can't access struct field elements I'm trying to use the C

Class::Struct: Can't access struct field elements

2006-04-10 Thread Ed
I'm trying to use the Class::Struct to create some C-Like structs but I'm unable to dereference any array elements in the struct. I'm admittedly a Perl newbie trying to map my C programming experience into Perl so it's possible I'm "thinking in C" rathern than in Perl. I've referenced several texts