RE: Subroutine Syntax

2003-06-15 Thread Kristofer Hoch
: text/html; charset=ISO-8859-1 > > What's up > This is the top half of my HTML page.This is error message > number > 1. > This is the top half of my HTML page.This is error message > number > 2. > > > > > > -Original Message- > From: david G

Re: Subroutine Syntax

2003-06-15 Thread Greenhalgh David
: : < DO STUFF> Comments in perl begin with #, not < Perl probably thinks you're referring to a file handle in angle brackets. Sorry, this is me using my own shorthand, everything is correctly #'d in the code. : sub error { : : : : if ($_[0]=1) { '=' is an assignment operator. You

RE: Subroutine Syntax

2003-06-15 Thread Charles K. Clarkson
david Greenhalgh <[EMAIL PROTECTED]> asked: : : Been banging my head on this, I'm obviously missing : something obvious, but I can't see what. Would someone : put me out of my misery? : : My code checks the value of a variable $status. : $status can have three values, 0,1,2. 0 is good, 1 : and 2

RE: Subroutine Syntax

2003-06-14 Thread Scot Robnett
ML page.This is error message number 2. -Original Message- From: david Greenhalgh [mailto:[EMAIL PROTECTED] Sent: Saturday, June 14, 2003 12:40 PM To: [EMAIL PROTECTED] Subject: Subroutine Syntax Hi all, Been banging my head on this, I'm obviously missing something obvious, but I can

Subroutine Syntax

2003-06-14 Thread david Greenhalgh
Hi all, Been banging my head on this, I'm obviously missing something obvious, but I can't see what. Would someone put me out of my misery? My code checks the value of a variable $status. $status can have three values, 0,1,2. 0 is good, 1 and 2 are errors. So; use strict; if ($status) {