Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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));'

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://651196]
help
Chatterbox?
Discipulus without Corion and with choroba in another timezone the monastery was silent.. I was silbing alone in the cloister
[choroba]: Yes, I feel alone in the cyberspace...
[choroba]: Not many occasions to talk to my wife, either :-(
Discipulus s/silbing/whistle/ dunno from where this word was in my mind..
[Discipulus]: lost in time in space and in the meaning (rocky horror picture show)
[Corion]: Discipulus: Yeah, a short vacation on the Canary islands (Lanzarote). Always great to be in the warmth and sun, from a cold and rainy February here ;)
[Corion]: choroba: Yeah, you have to find a time for the regular skype (or whatever) meetup, I imagine that's hard

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2017-02-22 08:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (325 votes). Check out past polls.