in reply to adding an array of instance variables and an array of values

You can't use an arrow if you're referring to a slice. Time to fall back to the more canonical form of simply replacing the name with a block holding the reference, or just the reference if it's in a simple scalar:
@$self{qw(sec min hour mday mon year wday yday isdst)} = localtime();

-- Randal L. Schwartz, Perl hacker

  • Comment on •Re: adding an array of instance variables and an array of values
  • Download Code

Replies are listed 'Best First'.
Re: •Re: adding an array of instance variables and an array of values
by postman (Acolyte) on Jun 28, 2002 at 14:14 UTC
    that's exactly what I wanted ... thanks