> 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
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
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
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
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
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
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
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
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.
Except for the last 7 lines where I'm trying to print out the
The code you provided can't be the example taken straight out of
Programming Perl, because it doesn'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:\Carnivor
10 matches
Mail list logo