#!/usr/bin/perl #this program is supposed to take user input put it into an array and then add #that text into a log file. use 5.010; use strict; print "Enter some text then hit control+D and we\'ll try to send it to the perlogfile:\n"; my @stuff = ; open (LOG, ">>perlogfile.rtf"); #error always happens here :no such file or directory if (! open LOG ) { die "cannot create link to logfile: $!"; } print LOG "@stuff"; close (LOG);