my $_filesanddates = shift; @filesanddates = @$_filesanddates; # dereferences the reference