"Peter Rabbitson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, Mar 11, 2005 at 12:45:10PM -0800, Wagner, David --- Senior Programmer Analyst --- WGO wrote: > > Peter Rabbitson wrote: > > > Is there a quick way to initialize a number of variables at once? > > > Something like > > > > > > my ($var1, $var2, $var3); > > my ($var1, $var2, $var3) = ( 1,1,1 ); > > Wags ;) > > > > > > but instead of having undef in all of them, let's say I want to have > > > 1 in each. Any takers? > > > > > > Peter > > > > But... isn't... this... ahem... like... um... ugly? :)
other than the program reading your mind, how could it be more consise? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
