On Dec 13, Dermot Paikkos said: >I want to use a scalar value as part of the name of an array. I have >tried: >push(@failed_$value,$data);
You do not want to have arrays named @failed_1, @failed_2, @failed_3, etc. That is bad form. Instead, you want to have an array of array (references): push @{ $failed[$value] }, $data; @failed is an array whose elements are references to arrays. For more on how to use references, check these standard docs: perldoc perlreftut perldoc perlref perldoc perllol -- 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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]