From: "Jim Canfield" <[EMAIL PROTECTED]> > I'm having trouble creating an 2 dimensional array that contains the > values of other smaller arrays. For example: > > foreach (@files) { > > #...Get values > @smallarray = ('$value1',$value2','$value3');
Whange the line above to my @smallarray = ('$value1',$value2','$value3'); to get a brand new array in each iteration > #Append @smallarray to @largearray push @largearray, [EMAIL PROTECTED]; Another option would be to skip the @smallarray at all and use push @largearray, ['$value1',$value2','$value3']; HTH, Jenda P.S.: '$value1' is a string containing a dollar, the word value and number 1. Not the contents of the variable $value1. ===== [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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>