Problems? Is your data what you think it is? | |
PerlMonks |
split every second wordby Anonymous Monk |
on Dec 04, 2003 at 15:25 UTC ( [id://312216]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I need a lil' help with this text manipulation
I've got names in a list like the following: Bob Builder Tinky Winky Bugs Bunny Mickey Mouse and ive basically got put them on separate lines. I think split can do this, and will store it in an array which is what i want but i have no idea how to split every other word?. I was also wondering if anybody knows how to remove spaces from the end of words so if i had "hello " it would give me "hello"...will s// /; do it? Thank you all
Back to
Seekers of Perl Wisdom
|
|