in reply to Re: Please help me
in thread Please help me

No he doesn't have to split the result of `command`. It gets split into lines in list context. The problem is that the newlines stay. So you do have to chomp() the elements.

Jenda
Enoch was right!
Enjoy the last years of Rome.

Replies are listed 'Best First'.
Re^3: Please help me
by FalseVinylShrub (Chaplain) on Feb 12, 2010 at 10:31 UTC

    Hi

    Oops. Thank you.. Can't believe I didn't know that. Amended post.

    However, now confused as s/he does chomp() the elements, it seems to me. So I can't see what the problem is.

    FalseVinylShrub

    Disclaimer: Please review and test code, and use at your own risk... If I answer a question, I would like to hear if and how you solved your problem.