[Gllug] What is a hash?

Warwick Harvey warwick.harvey at btinternet.com
Wed Jul 25 23:04:25 UTC 2001


"David Irvine" <co2cool at yahoo.com> wrote:
> ----- Original Message -----
> From: Gordon Joly <gordon.joly at pobox.com>
> To: <gllug at linux.co.uk>
> Sent: Wednesday, July 25, 2001 6:14 PM
> Subject: [Gllug] What is a hash?
>
> > >No, $HTTP_POST_FILES is an array (well, hash, but this is php),
> >
> >
> > Question ...
> >
> > Is a hash an associative array and is an associative array a hash?
>
> If your refering to a hash in perl, and I assume you are then yes, a hash
> named because of it's prepended by the % charecter in perl.

Erm, I thought the "hash" character was #.

I also thought (though I'm not a perl programmer) that associative arrays in
perl were called hashes because they were implemented using a hash table (no
idea whether they are or not, I just assumed so :).

Cheers,
Warwick


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list