Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: element of an array of arrays

by JockoHelios (Scribe)
on Jun 17, 2013 at 14:53 UTC ( [id://1039386]=note: print w/replies, xml ) Need Help??


in reply to Re: element of an array of arrays
in thread element of an array of arrays

Earlier on (a couple of weeks, at least) after starting to use strict, I'd tried to declare arrays and had gotten error messages. To get past that, I'd started declaring arrays using splice. It always struck me as odd, but since it worked I continued to do it that way.

I didn't think of the simple declaration syntax that hdb mentioned above. I thought I had to actually do something with an array when declaring it. That's the reason I've been declaring arrays using splice, which of course I can discontinue :)

Dyslexics Untie !!!

Replies are listed 'Best First'.
Re^3: element of an array of arrays
by AnomalousMonk (Archbishop) on Jun 17, 2013 at 15:57 UTC
    ... I'd tried to declare arrays and had gotten error messages. To get past that, I'd started declaring arrays using splice. ... since it worked I continued to do it that way.

    This strikes me as a perfect example of the Skinnerian process of shaping "superstitious" behavior.

    Please do not take this the wrong way: I do not mean it to be in any way offensive or a personal attack. If Skinner's analysis is right, "superstitious behavior" of this kind is something we all exhibit, know it or not, and always have and always will as long as we remain organisms whose behavior is predominantly operant. However, with self-awareness, we can occasionally eliminate behaviors that are wasteful of time or effort, or are actively destructive — and so you have!

Re^3: element of an array of arrays
by LanX (Saint) on Jun 17, 2013 at 15:52 UTC
    Look at Perl like a powerful tool which can do much good but also cause much destruction.

    It's no good for try and error hacking!!!

    Better get a good book and try to understand step by step what you are doing!

    Please don't try pressing every possible button to get only seemingly correct results...

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found