Re: Array of Array refs



Brian wrote:

Paul Lalli wrote:

Brian wrote:

my variable names end with A for array and H for hash,

Pointless. Variable names in Perl identify what kind of variable they
are. @ for arrays, % for hashes. [ ] for accessing an element of a
hash, { } for accessing element of a hash.

no, I disagree. Changing @ to $ is confusing... besides that, my naming is consistent, and helps me understand what I'm writing. I
think you missed it on that one... its a disservice to beginners to
say 'pointless' like that..

( I may not respond in such detail in the future.. Its just that I'm new here, - I'm surprised by all of this intensity over something
pretty mundane.)

I agree with you Brian. I have been posting on this list for around four
years, and rarely have I seen 'help' that is expressed with such vitriol
as Paul's has been. When Casey West envisaged perl.beginners back in 2001
his intent was to avoid this very attitude of muscle-flexing. He writes:

~ It seems that the very thing we want to have happen, adding number to our ~ ranks, is the first thing we fight against when beginners show their ~ faces. Wielding our swords of "RTFM" and shields of "killfile" we smite ~ the very programmers that will carry this language into the future. I ~ have a co-worker who is known for saying, "It's a good thing Perl is so ~ powerful and cool, it barely makes up for the collective, childish ~ 'elitism' displayed by its community." Collectively, this is a sad truth.

I hope you will persist in posting requests for, and perhaps offers of
help. All group members are valuable and I look forward to your input.

Rob
.



Relevant Pages

  • Re: Can it be done with *sed* ?
    ... Hash: SHA1 ... dead simple if 'XXXX' would be the _first_ ... Shortly after writing this, ...
    (comp.unix.shell)
  • Re: Just a warning....
    ... the next few weeks as I've just obtained a large amount of hash and expect ... but wait till the following morning to proofread them ... I tried the Hemingway School of Writing once (a few ...
    (rec.arts.drwho)
  • Re: Regarding file handling
    ... > I am reading a certain data from one file and writing to another file. ... When i am writing it to the second file, ... To only print one instance of any given block, use a hash. ...
    (perl.beginners)
  • Re: Config::General Failing test in ActivePerl
    ... > Test 8 is writing a hash to a file, and reloading it, and seeing if it ... It fails where a multi-line string is written out. ...
    (comp.lang.perl.modules)
  • Re: Regarding file handling
    ... I am reading a certain data from one file and writing to another file. ... want to only print out the first instance of each block? ... To only print one instance of any given block, use a hash. ...
    (perl.beginners)