On Mon, 28 Jan 2002, Martin A. Hansen wrote: > $extract = qw (en tre ni); > > # foreach $number (qw <en tre ni>) { > foreach $number ($extract) {
ummm... shouldn't this be forwach $number (@extract) { .... ? ----^ note the @ you're calling the for loop with a scalar. you could just append a newline to the value of $number before you push it onto the array.. that will return an array that will print out each element on a new line... although I would think it would be better to handle that when you need to actually output the array. HTH deen -- Deen Hameedd, Accidental Programmer [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]