my $xyz= SubAcquisisciDatiCampiEsistenti( ...) #somewhere in your script you have a line like this where you call the subroutine print Dumper($xyz); #<----- add this, but use the variable name you are using