On Mon, Aug 02, 1999 at 10:32:05AM -0400, Prakash Kailasa wrote: > I was thinking about the way arrays are printed when I wrote the above. > > @a = qw(one two); print @a, "\n"; print "@a\n"; > > ==> > onetwo > one two > > When an array is interpolated withing a string, it is printed as if > 'join'ed by a space. I don't know why but somehow I thought by setting $/ > to "\n", the array returned by grep would be printed on separate lines. I think that $, is the variable you meant to use. $" is for arrays interpolated in strings, but for printing arrays outside of strings, you want to use the output field separator, $,. Ronald ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe