Keep It Simple, Stupid | |
PerlMonks |
Re: print datafields separated by tabby thinker (Parson) |
on Aug 23, 2003 at 09:22 UTC ( [id://286034]=note: print w/replies, xml ) | Need Help?? |
Hi bandya, It looks as though your fieldnames have newlines embedded at the end. If this is the case,what you want to do is
though it would be better to chomp fieldname when you put it into @fieldname. Alternatively, combine the chomp with allolex's join method, and use print join "\t", map { chomp; $_ } @fieldname;hope this helps thinker
In Section
Seekers of Perl Wisdom
|
|