I'd write that as:
my %hair_properties = @args{qw( hair_style hair_length hair_color )}; # ^^^^^ Blasted Brits who can't accept # a simplification of the language . . .
That way your users won't have to type the extra '-' char. Further, this method is actually shorter when your list starts growing (four-char overhead of qw() stays constant).
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
In reply to Re^2: Interesting unary - oddity
by hardburn
in thread Interesting unary - oddity
by RMGir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |