rnaeye has asked for the wisdom of the Perl Monks concerning the following question:
Hi!,
I want to push scalar values into an array and put a 'tab' as delimiter between them. Line is long and I have to put many 'tab'. Can I also push "\t" between values without typing between each value? Is there another way that Monks would suggest? Thank you.
or something similar to the following awk OFS command
awk '{OFS="\t"; print $1,$2,$3,$5,$4}'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pushing a delimiter into an array?
by iguanodon (Priest) on Mar 31, 2014 at 01:56 UTC | |
by rnaeye (Friar) on Mar 31, 2014 at 02:18 UTC | |
|
Re: Pushing a delimiter into an array?
by NetWallah (Canon) on Mar 31, 2014 at 02:56 UTC | |
|
Re: Pushing a delimiter into an array?
by 2teez (Vicar) on Mar 31, 2014 at 06:11 UTC |