in reply to Regexp question on combining white spaces and comparisons

I thought to ... do a regexp to find the required parameters as mentioned above. But, i do not see any difference in the output, after the above code is executed.

You haven't shown us the code you attempted to use to parse the lines like "PIC 0  Online       4x10GE SFPP". Or are you asking us to write that for you?

my @outputlist = join s/(^\s+|\s+$)//g, $output;

This does not really make sense, or you're trying to do too much in one line - if you could explain what this line of code is supposed to be doing that might help.