I saw such code:
my $fh = gensym;
open $fh, ">$name" or die "Can't create $name: $!";
which can be written as :
open my $fh, ">$name" or die "Can't create $name: $!";
Is gensym
just legacy or still useful in some occasions?