D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Fwd: [Support #340] [theo@crazygreek.co.uk: RE: Perl 5.8.0 released: please mirror now]



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

and on the note of perl....

woo woo, perl 5.8 is out!

two things that stand out from the changelog...

Restricted Hashes

A restricted hash is restricted to a certain set of keys, no keys
outside the set can be added.  Also individual keys can be restricted
so that the key cannot be deleted and the value cannot be changed.
No new syntax is involved: the Hash::Util module is the interface.


Switch, by Damian Conway, has been added.  Just by saying

   use Switch;

you have C<switch> and C<case> available in Perl.

   use Switch;

   switch ($val) {

               case 1          { print "number 1" }
               case "a"        { print "string a" }
               case [1..10,42] { print "number in list" }
               case (@array)   { print "number in list" }
               case /\w+/      { print "pattern" }
               case qr/\w+/    { print "pattern" }
               case (%hash)    { print "entry in hash" }
               case (\%hash)   { print "entry in hash" }
               case (\&sub)    { print "arg to subroutine" }
               else            { print "previous case not true" }
   }



Yaaaaaaaaaaaaaay!



~ Theo, strangley happy at the release of perl 5.8.

- ----------  Forwarded Message  ----------

- From cpan-mirrors-owner@xxxxxxxxxxxx Fri Jul 19 01:24:21 2002
Date:   Fri, 19 Jul 2002 03:23:51 +0300
From:   Jarkko Hietaniemi <jhi@xxxxxx>
To:     cpan-mirrors@xxxxxxxxxxxx
Subject: Perl 5.8.0 released: please mirror now


Those of you who mirror ftp.funet.fi directly, please expedite
your mirrors and do it now, Perl 5.8.0 has been released and soon
many people will want to download it, I think.

Those of you not mirroring ftp.funet.fi directly, please forward
this message to your upstream mirrors.

- --
$jhi++; # http://www.iki.fi/jhi/
       # There is this special biologist word we use for 'stable'.
       # It is 'dead'. -- Jack Cohen


- -- 

Theo Zourzouvillys
http://zozo.org.uk/

It's a very *__UN*lucky week in which to be took dead.
               -- Churchy La Femme
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9N3RD448CrwpTn6YRAvMfAJ9axFufnq3Z4pdEqDowRfOO1FRZ6gCfR9rM
VhutWrOpgCh7x7gB3WVa+3w=
=N1RG
-----END PGP SIGNATURE-----


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly