Hey casperdaghost
It seems you may be confusing bach ettiquette and perl ( I could be wrong ), but
perl still only uses the backtick (`) and not the bash option of $() to run commands.
Also, your output is correct as qw() is doing its job of putting all the words you put in there
into your array variable pidnumbers. I would be guessing your $size = 1.
So try
Code:
my @pidnumbers = `ps auxwww | awk '{print \$2}'`;
Edit: Wouldn't you know it <doh> forgot the escape character. This should work now