Wow.. that's a pretty neat notation... :) I would never have thought of that...
:) Thanks, --------------------------- Jason H. Frisvold Senior ATM Engineer Engineering Dept. Penteledata CCNA Certified - CSCO10151622 [EMAIL PROTECTED] --------------------------- "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." -- Albert Einstein [1879-1955] -----Original Message----- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 6:28 PM To: Jason Frisvold Cc: begin begin Subject: Re: variable initialization On May 29, Jason Frisvold said: >my ($var1, $var2) = 0; > >The intent was to initialize the variables to 0. However, as I found >out a few minutes ago, this only initializes the first variable in the >list to 0 and leaves the others as undefined... > >Is there an easy way to do this? I know I can do them this way : Well, you could always do something like my ($x, $y, $z) = (0) x 3; -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]