Perl: the Markov chain saw | |
PerlMonks |
How do i read each line of the file into string?by anjaana78 (Novice) |
on May 09, 2001 at 17:28 UTC ( [id://79069]=perlquestion: print w/replies, xml ) | Need Help?? |
anjaana78 has asked for the wisdom of the Perl Monks concerning the following question:
I have a text file that has one word per line.... now i have to read that file into a string and also add a comma after each word. for example the text file is gonna look something like this...
tariq
rashid
mike
mushi
and i have to get the output something like this
tariq, rashid, mike, mushi
thanks for your help in advance....
Back to
Seekers of Perl Wisdom
|
|