in reply to sub functions return array's

You changed the original question, which is a bit confusing. Anyway, as most (all?) of the answers to your previous question said, you are returning a reference, which is what the ARRAY(HEX numbers) is. You need to dereference it, for example:
my $ref = getfiles(); my @uploads = @$ref;
Alternatively do not return a reference, just return a list. This can be done by ommiting the \:
return @aref;