in reply to Re: First attempt at bringing in file for input/output
in thread First attempt at bringing in file for input/output
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: <%-{-{-{-<
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: First attempt at bringing in file for input/output
by haukex (Archbishop) on Oct 22, 2018 at 08:23 UTC |