in reply to Removing non-printing (hex codes) from text files
open (WORK, "<$work_file") or die "Couldn't open $work_file."; # Open +the working file
If so, maybe it's a backslash thing (sorry... I don't do Windows). Try this simplified code:
use strict; use warnings; my $work_file = 'E:\triggers\1_MERGE_3326\tests\20131209_180245424_R01 +.hl7'; open (WORK, "<$work_file") or die "Couldn't open $work_file : $!";
Tip #7 from the Basic debugging checklist ... $!
|
|---|