Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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
Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2015-10-04 22:13 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (105 votes), past polls