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,
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_a
on <[EMAIL PROTECTED]> wrote:
> 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
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++ program
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 fun
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 begi