Think about Loose Coupling | |
PerlMonks |
Re: Re: print datafields separated by tabby thinker (Parson) |
on Aug 23, 2003 at 16:52 UTC ( [id://286074]=note: print w/replies, xml ) | Need Help?? |
Hi davido, This is wrong in (at least) 2 regards. Firstly, the syntax is wrong in the while loop. What you needed was
Secondly, chomp does not return what you think it does. It returns the number of characters it removes, in your case 1 for each iteration. So your final result will be like 1 1 1Hope this helps thinker
In Section
Seekers of Perl Wisdom
|
|