in reply to Perl Idioms Explained - keys %{{map{$_=>1}@list}}
It's a nice way of working with a changing list of static acceptable things.my %acceptable_server = map { $_ => 1 } qw( DEV QA PROD );
------
We are the carpenters and bricklayers of the Information Age.
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|