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