On Thu, Mar 29, 2001 at 04:37:08PM +0200, Daniel Heiserer wrote:
> I get a field from my mysql database using perl, but when I
> print that field the $, of $OFS doesn't seem to work.
> The fields are separated with " ":
> while(@r=$cur->fetchrow_array){
> print "---> $#r:@r";
^^^^^^^^^^^^^
You're interpolating an array inside a double-quoted string here. The
special variable you want is $".
If you had done this instead:
print "---> $#r:";
print @r;
then $, would have been used.
Ronald
- $,!="," Daniel Heiserer
- Ronald J Kimball
