Although operator precedence will do the right thing in your code ..
I prefer the more explicitopen my $FH_infile, '<', "$in_file" or die "Can't open $in_file"; open my $FH_outfile, '>', "$out_file" or die "Can't open $out_file";
In addition, I do like to give myself as much information as possible by adding $! to error messages:open ( my $FH_infile, '<', "$in_file" ) or die "Can't open $in_file"; open ( my $FH_outfile, '>', "$out_file" ) or die "Can't open $out_file";
Also, I wasn't aware of File::Basename .. that's pretty handy.open ( my $FH_infile, '<', "$in_file" ) or die "Can't open $in_file: $!"; open ( my $FH_outfile, '>', "$out_file" ) or die "Can't open $out_file: $!";
In reply to Re^2: First attempt at bringing in file for input/output
by talexb
in thread First attempt at bringing in file for input/output
by catfish1116
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |