From: [email protected] > I'm almost ashamed to have to post this, because I know this is a newbie > question, and I'm not really one of those any more, but I'm drawing a > blank. Isn't there an easier way to initialize a list of variables, to a > common value, than this: > > my ($a, $b, $c, $d, $e, $f) = ('init', 'init', 'init', 'init', 'init', > 'init');
A list of variables should most probably be a list variable. OK, an array variable, but that doesn't sound as nice. Or a hash. But most likely you'll find yourself wanting to do more things to all those variables later. Which is trivial if it's a single variable containing several values, but tedious if its several variables. Jenda ===== [email protected] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
