Perl Christmas Quiz

Paul LeoNerd Evans leonerd at leonerd.org.uk
Tue Dec 16 10:48:29 GMT 2008


On Fri, 12 Dec 2008 11:37:23 +0000
"Joel Bernstein" <joel at fysh.org> wrote:

> > 4) How many different variable types are there in Perl? Be as sensibly voluminous in your answer as you are able.  
> 
> SCALAR ARRAY HASH CODE
> FileHandle DirHandle Regexp
> 
> But clearly we distinguish between numeric and string scalar values,
> so I'm wondering how exhaustive that list is...

Nono, this is an (incomplete) list of referant value types.

Variable types:

  my $scalar;
  my @array;
  my %hash;

Value types:

  undef
  non-reference; "foo" or 123 or 45.6
  reference:
    [your list above]
    GLOB

-- 
Paul "LeoNerd" Evans

leonerd at leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://london.pm.org/pipermail/london.pm/attachments/20081216/21926ef4/signature.pgp


More information about the london.pm mailing list