
theo
By: a guest on Jan 28th, 2010 | syntax:
Perl | size: 0.28 KB | hits: 72 | expires: Never
#! /usr/bin/perl
use strict;
use warnings;
my %hash = (
'fermat' => ['dual core', '2G DDR'],
'gauss' => ['P4', '1G'],
'euler' => ['586', '64k']
);
foreach ('descartes', 'gauss', 'laplace')
{
print "we have a machine named $_\n" if ($_ ~~ keys %hash);
}