Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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.


Comment on Re^2: accessing data structure
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://651218]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2014-07-13 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (249 votes), past polls