in reply to Re: changing DB delimiters
in thread changing DB delimiters
$OUTPUT_FIELD_SEPARATORSo it makes no sense to set $, and $\ to the same value.
$OFS
$,
The output field separator for the print operator. Ordinarily the print operator simply prints out its arguments without further adornment. To get behavior more like awk, set this variable as you would set awk's OFS variable to specify what is printed between fields. (Mnemonic: what is printed when there is a "," in your print statement.)
$OUTPUT_RECORD_SEPARATOR
$ORS
$\
The output record separator for the print operator. Ordinarily the print operator simply prints out its arguments as is, with no trailing newline or other end-of-record string added. To get behavior more like awk, set this variable as you would set awk's ORS variable to specify what is printed at the end of the print. (Mnemonic: you set `$\' instead of adding "\n" at the end of the print. Also, it's just like `$/', but it's what you get "back" from Perl.)
Jeroen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Output Separators (Was: changing DB delimiters)
by Abigail (Deacon) on Jun 20, 2001 at 22:27 UTC | |
by jeroenes (Priest) on Jun 21, 2001 at 01:26 UTC | |
by Abigail (Deacon) on Jun 21, 2001 at 03:10 UTC |