simple open file



Hello,
I'm trying to open (create if necessary) a file for APPEND, that will serve as a log. The script I'm using will open a file, but fails to print anything to it. Any advice?




my $filename = "open_file.txt";
open(APPEND, ">> $filename")
	or die "Couldn't open $filename for appending: $!\n";
	write "$subscriber\n";
close APPEND;
.



Relevant Pages

  • Re: Rename file during copy
    ... running into is deciding the filename when renaming. ... extension then append "_copy" ... The current copying method is far from finished, but the renaming ...
    (comp.lang.php)
  • Re: Multiple outputs to a CSV file
    ... You will have to make sure the filename used is identical for all related ... > orchestration and then store some of the data in CSV format. ... > can I append the results of each inbound XML document to the SAME CSV file ...
    (microsoft.public.biztalk.general)
  • Re: opening files and code cleanup
    ... integer function file_open(filename, opened_ok, status, append) ... character:: mystatus ... logical:: filename_exists, myappend ... We require a filename (ifc would prompt for one in this instance ...
    (comp.lang.fortran)
  • Re: file numbering
    ... OEX will prepend or append a timestamp to the ... filename as well to allow for sorting based on subject / date or date / ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: IndexError: tuple index out of range
    ... tuple index out of range ... Here is my script: ... # Filename: str_format2.py ... append = '6 months' ...
    (comp.lang.python)