More subroutine confusion

2003-06-07 Thread Rob Richardson
Dave, Your response dovetails nicely with my next question. The module I'm working in begins as follows: use warnings; use strict; use CGI qw/:standard center strong *big delete_all/; After putting parentheses after my calls to "br", the program compiled and started running. It barfed, though,

Re: br -- problem caused by "Package"? -- my bad

2003-06-07 Thread Rob Richardson
Greetings again! I could of course be wrong... I just found that I had "use warnings" and "use strict" commented out in the module that compiled! Excuse me for a while while I track down a hundred or so violations that uncommenting them uncovered. RobR --- Rob Richards

Re: br -- problem caused by "Package"?

2003-06-07 Thread Rob Richardson
Kristofer and everybody else, "br" is successfully used without parentheses in the first snippet I posted. I don't believe that parentheses are required for subroutine calls that don't have arguments, although I suppose I should use them since I'm mainly a C++ programmer and so I should be as con

br

2003-06-07 Thread Rob Richardson
Greetings! I am attempting to use objects to organize a program somewheat intelligently. I am running into a problem using the CGI method "br". My main routine has the following use statements: use CGI::Carp qw(fatalsToBrowser); use CGI qw/:standard center *big delete_all/; It begins writing H

Premature end of script headers -- solved

2003-01-12 Thread Rob Richardson
Greetings! I found the problem. In one execution path, my script has the following steps: $month = param('month'); $day = param('day'); $year = param('year'); $position = param('position'); $indmonth = param('indmonth'); $selection = param('selecti

Re: Sending a location Header

2003-01-12 Thread Rob Richardson
Greetings! I have successfully added the new functionality to the script I have been upgrading. Now the old functionality doesn't work. When I try to use it, I get an error page announcing Error 500, Internal Server Error. The log file contains the following message: "Premature end of script h

Re: IF statments -- ORs short circuit too

2002-12-24 Thread Rob Richardson
--- Michael Kelly <[EMAIL PROTECTED]> wrote: > Only and's short-circuit. Or's test every argument by necessity. Mike, In just about every Perl script that has to read from or write to a file, you will see a line similar to the following: open (MYFILE, "myfile.txt") or die "Can't open myfile.tx

start_tr

2002-12-13 Thread Rob Richardson
Greetings! I am having some trouble with a script designed to create a table. Here is the important part: use CGI::Carp qw(fatalsToBrowser); use CGI qw/:standard :html center *big *strong *table *tr *td delete_all/; use Time::Local; build_calendar(param('month'), param('year')); sub build_cale