It is not allowed to optionally create a variable in an if statement.
I cannot see where this is attempted; can you point this out? (I assume you're referring to the OPed code, but I can't see it anywhere in the thread.) (Update: As an aside, note that conditional creation of a variable is "allowed" in the sense that it is not a syntactic error, but it's not a good idea for reasons discussed here and documented here.)
open my $FH_infile, '<', "$in_file" or die "Can't open $in_file";
And just to satisfy my idle curiosity, can you say why you use the "$in_file" idiom (stringizing a string)? (I notice talexb also uses the idiom here.)
Give a man a fish: <%-{-{-{-<
In reply to Re^2: First attempt at bringing in file for input/output
by AnomalousMonk
in thread First attempt at bringing in file for input/output
by catfish1116
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |