Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: accessing data structure

by CColin (Scribe)
on Nov 16, 2007 at 14:34 UTC ( #651218=note: print w/replies, xml ) Need Help??

in reply to Re: accessing data structure
in thread accessing data structure

Hi, I had read up on references and also had strict and warnings on. I don't take posting to this august list so lightly, but references aren't so easy in Perl, at any rate that's the way it is for me. Never attribute to indolence what can first be explained by ignorance... Thanks anyway to the person who spotted the issue.

Replies are listed 'Best First'.
Re^3: accessing data structure
by jbert (Priest) on Nov 16, 2007 at 14:44 UTC
    Sorry if I seemed rude, I didn't mean to cause any offence.

    My reference to references (ha!) was in the context of the previous reply. I hope that helps change the tone a little (without that, it does seems ruder to me).

    I don't understand how you got the results you did with strict on, this code fails to execute for me (compilation error):

    #!/usr/bin/perl use strict; my @dereferenced_array = @{results}; print "not reached\n"; # doesn't execute
    perl 5.8.8, linux.
      No offence taken. As for reproducing the error, I was getting all sorts of warnings on different iterations of trying different ways of dereferencing, didn't reproduce them since I knew there was something basic I was not doing but couldn't spot it despite several hours staring at it - luckily it was spotted quickly by you good monks. You're right I should have been fuller in the reply and included error messages also.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://651218]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2018-05-23 15:57 GMT
Find Nodes?
    Voting Booth?