Re: how to create a submit button in perl?

2003-06-07 Thread Luinrandir Hernsen
the submit button is part of the form command in HTML. I use perl to: print qq||; if thats what you are looking for check out your HTML commands for Luinrandir - Original Message - From: "Scot Robnett" <[EMAIL PROTECTED]> To: "Annie" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Fr

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

Re: br

2003-06-07 Thread Kristofer Hoch
Rob, Great going, you are adding the 'use strict;' pragma to your code.! Bravo. Now, here is the deal. Tell Perl that 'br' is a function by doing either '&br' or 'br();'. That should do the trick. You'll notice that all of your other functions have parenthesis. That is why you are not gettin

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

2003-06-07 Thread Dave K
Rob, > > I tried another program to illustrate the "br" problem. Here is the > entire program: > Not really - the packages ScheduleDay and Train are missing > #!/usr/bin/perl > > use warnings; > use strict; > use CGI qw/:standard center *big delete_all/; > > use ScheduleDay; > use Train; > > pack

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

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 Richardson <[EMAIL PROTECTED]> wr

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: More subroutine confusion

2003-06-07 Thread Dave K
Rob, > 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/; Because the code you have included does not specifically say so I have to guess that: package NotShow

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

2003-06-07 Thread Charles K. Clarkson
Rob Richardson <[EMAIL PROTECTED]> wrote: : : Here is the entire program: : : #!/usr/bin/perl : : use warnings; : use strict; : use CGI qw/:standard center *big delete_all/; All the above functions from CGI.pm are imported to 'main'. They are available as, for example, 'main::br' which can