open(F,">$filename.inp");
to
open my $F, ">", "$filename.inp";
Then change all subsequent references from F to $F.
See open for more details. That won't fix your current issue, but it'll level up your code and beginner status.
In reply to Re: Help in putting "$" as part of output
by perlfan
in thread Help in putting "$" as part of output
by arshadmehmood118
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |