in reply to @status issues
system returns the exit status of the command it ran, not it's output. You want backticks (see qx// in perlop).