my $filename = $count.".out"; my $save_retval = $factory->save_output($filename); print "Returnvalue of save_output(): $save_retval\n"; open(my $fh,"<$filename") or die $!; while(<$fh>){ print; }