in reply to Re^2: Problem with ampersand and regexin thread Problem with ampersand and regex
How are you filling @array?
Take a look at What's the difference between Perl's backticks, system, and exec?. The system() call returns the exit status, not the actual result (STDOUT) of the command like the backtick operator does.
Unixish Shell Scripting languages
Other (post in comments)
Results (286 votes). Check out past polls.