uccess) {
> 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
And I quote, "just like 6 lines of code and it doesnt work so I need some help." Are
you sure about this?
-Original Message-
From: "Matthew Mangione"<[EMAIL PROTECTED]>
To: "Linux Beginners"<[EMAIL PROTECTED]>
Date: Thu Oct 25 09:35:02 PDT 2001
Subject: trying to write to a file
>hey im
Sorry to reply to my own reply but you should also consider "use strict" which
will catch certain things like the $success bug in your script ..
On Thu, Oct 25, 2001 at 06:12:22PM +0100, [EMAIL PROTECTED] shaped the electrons
to read:
> I am assuming that the script you showed is complete ... th
I am assuming that the script you showed is complete ... there are a few
problems with it.
First the showstopper ... what is the value of $success? Did you mean
$success = open(DATA,">mydata.dat");
Next are the "probably a better idea to di it this way" (IMHO) stuff ...
die takes parameters an
--- Matthew Mangione <[EMAIL PROTECTED]> wrote:
> 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;
> }
>
> pri