in reply to Re: Using data at the end of a program file
in thread Using data at the end of a program file
print << END_OF_HEREFILE
should be (if not, the Perl I'm using will say it's deprecated) :
print TEMPFILE <<END_OF_HEREFILE;
And then, this approach, as it is, will have the print statement print out the following warning at the console:
/tmp/log1.conf: No such file or directory
Up to now I cannot get rid of these messages. Creating a file beforehand like this does not help:
open(LOG1, ">/tmp/log1.conf"); print LOG1 "test"; close LOG1;
I think it's because the file does not get actually created on the disk. Not flushed or something. Because if files are simply 'touched' at the console before running the code, the print warnings are not displayed.
There must be a Perl way of doing this ! ;-)
|
|---|