system returns the exit status of the command it ran, not it's output. You want backticks (see qx// in perlop).
In reply to Re: @status issues by Fletch in thread @status issues by Anonymous Monk