On Tue, Jun 05, 2001 at 10:42:33AM -0700, Paul wrote:
> If you use "or" instead of "||" you can reduce the "line noise" by
> taking out the parens.
>
>open(FILE, $filename)
>|| die("Unable to open file \"$filename\": \l$!.\n");
>
> becomes
>
>open FILE, $filename
> or
--- Michael Fowler <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 04, 2001 at 11:40:46PM -0500, [EMAIL PROTECTED]
> wrote:
> > open(FILE, "$filename");
>
> Always check your open calls. For example:
> open(FILE, $filename) || die("Unable to open file \"$filename\":
> \l$!.\n");
If you use "or"
On Mon, Jun 04, 2001 at 11:40:46PM -0500, [EMAIL PROTECTED] wrote:
> } elsif ( $remtag == "1" ) {
> $remove_email = $formdata{rem_name};
> open(FILE, "$filename");
Always check your open calls. For example:
open(FILE, $filename) || die("Unable to open file \"$filename\": \l$!.\n");
or p
In the first line, $remtag == "1"
should either be a string match
$remtag eq "1"
or a numerical one
$remtag == 1
I don't know if that's your problem, but I'm sure it's
not doing what you want it to . . . .
Good luck!
On Mon, 4 Jun 2001 [EMAIL PROTECTED] wrote:
> } elsif ( $remtag == "1" ) {