Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Welcome to the Monastery
 
PerlMonks  

Re: accessing data structure

by agianni (Hermit)
on Nov 16, 2007 at 13:39 UTC ( #651196=note: print w/ replies, xml ) Need Help??


in reply to accessing data structure

Your main problem is that @{results} is not the same as @{$results}, which is what I think you're looking for. Always use strict and use warnings in your code and you'll get a warning (actually a fatal error) when you try to run code like this.

perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'


Comment on Re: accessing data structure
Select or Download Code
Re^2: accessing data structure
by CColin (Scribe) on Nov 16, 2007 at 13:46 UTC
    Thanks - staring at the code too long I missed it. I had warnings on but didn't get what I'd done wrong. Now I have a real array structure I can start to unravel. Colin
      I had warnings on but didn't get what I'd done wrong.
      Perhaps you already tried this, but sometimes use diagnostics; will provide a little more detailed help in figuring out what the warnings really mean.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-04-17 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (437 votes), past polls