to save output of a command in hash variable

Hi all,

is it possible to save the output of a unix command executed in perl to be saved in hash variable..

like i have the command

`find $mypath ! -user mainuser -printf \"\%u \%h\\n\"`;

this will print all the users other than mainuser with their paths.
so is possible to capture directly result into a hash(hash of arrays) which stores the key as username and all the paths of a particular user as values.

thanks for ur help and suggestions in advance

You will need to build hash from array

that is what i am not getting....can some one give a hint how to do it?