in reply to system() and backticks question

Not sure how you coding it but:
my @res = `ps -ef`; print @res;

works. Newlines are preserved.

mitd-Made in the Dark
'My favourite colour appears to be grey.'

Replies are listed 'Best First'.
Re: Re: system() and backticks question
by Jerry (Scribe) on Sep 05, 2001 at 21:59 UTC
    Thanks! Apparently backticks were the answer. I can't seem to find my copy of the script in which I initially ran into the problem, but thanks for the help all the same. My goal was to learn a coding principle, rather than have the monks troubleshoot a single piece of code for me.. (Thinking along the "Teach a man to fish" lines)

    -Jerry
    http://www.digilliance.net