in reply to Unable to write the .sv file

Use the three argument open, and let it tell you why it failed:

open(my $fh, '>', 'generic_bist_ctrl_defines.sv') or die "Can't open > generic_bist_ctrl_defines.sv: $!";

Replies are listed 'Best First'.
Re^2: Unable to write the .sv file
by hippo (Archbishop) on Mar 12, 2021 at 15:35 UTC

    (++) Also DRY on the filename because a typo in just the first one is an intensely annoying bug when it happens.

    my $outfile = 'generic_bist_ctrl_defines.sv'; open my $fh, '>', $outfile or die "Can't open > $outfile: $!";

    🦛