in reply to Re: Interesting unary - oddity
in thread Interesting unary - oddity

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.

Replies are listed 'Best First'.
Re^3: Interesting unary - oddity
by ikegami (Patriarch) on Aug 27, 2004 at 18:38 UTC

    oh I agree. I've never used this type of '-'. But CGI.pm uses it that way, for example.

    ps - I'm not a brit.