in reply to Problem in OUTPUT_FIELD_SEPARATOR

$OUTPUT_FIELD_SEPARATOR only operates on comma separated fields, not arrays interpolated within double quotes. For that, you need to use $LIST_SEPARATOR.

$" = "\n"; ## This may do what you intended. print "\nArray Elements within Double Quotes :\n@files";

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

Replies are listed 'Best First'.
Re^2: Problem in OUTPUT_FIELD_SEPARATOR
by Samy_rio (Vicar) on Aug 27, 2005 at 09:09 UTC

    Thank you for your replies. But I have one more question is "For What reason Variable Interpolation is not working in second print statement in my code".

    Regards,
    Velusamy R.

      Is working the it is supposed to work - perlvar:
      "$, The output field separator for the print operator.
      Ordinarily the print operator simply prints out its arguments without further adornment."
      .
      ... print "\nArray Elements within Double Quotes :\n", @files; ... output: Array Elements within Double Quotes : apple ball cat