Try this:
open(FILENAME, ">changes.txt");
print FILENAME "Things and Stuff";
close(FILENAME);
You just seem to be missing the ( )
> -----Original Message-----
> From: Matthew Mangione [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, October 25, 2001 5:35 PM
> To: Linux Beginners
> Subject: trying to write to a file
>
> hey im trying to write to a file with just like 6 lines of code and it
> doesnt work so I need some help. here is the code:
>
> #!perl
>
> open DATA, "> mydata.dat";
>
> unless ($success) {
> print "Problem Encountered";
> die;
> }
>
> print DATA "Hi Matt";
>
>
>
> thanx matt << Message: Re: trying to write to a file >> <<
> Message: Re: trying to write to a file >> << Message: Re: trying to write
> to a file >> << Message: Re: trying to write to a file >> << Message:
> questions >> << Message: Problems with a script that saves news >> <<
> Message: Source for admin_news.cgi >> << Message: CGI->compile(); >> <<
> Message: Re: I want out, but I'm no idiot. >> << Message: SSL and CGI >>
> << Message: Weekly list FAQ posting >> << Message: SSL via Apache on
> WINNT >> << Message: Faking form variables >>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]