in reply to Re^2: open file error
in thread open file error
Feel free to use different approaches.
As a hint, maybe you want to re-read chomp - it will not remove space (chr(32)) from the end of a string. But as I already showed you how to diagnose the problem, you certainly have found out by using my advice that whitespace at the end of $logfile was not the case for the difference between the hardcoded filename working and the dynamic filename not working.
Please show us again the code that works and the code that fails, together with the diagnostic that ascertains that there is no whitespace at the end of the filename you use in the dynamic case.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: open file error
by t-rex (Scribe) on Jul 19, 2016 at 11:59 UTC |