--- Jeremy Gray <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm only a couple days into learning perl here.. but I've been having this
> problem with subroutines I can't seem to figure out. Could someone explain
> what I'm doing wrong here:
>
> require "cgi-lib.pl";
Please don't use cgi-lib.pl.
>
>doStore();
>
>without the &
>
>Geraint.
That doesnt seem to work either. Maybe I dont understand what all I'm
supposed to do.
if ( $in{'agree'} ne "" ) {
doStore();
&doRedirect;
} else {
&doSorryYoung;
}
See.. I just want it to run doStore, then run doRedirect. So should I call
both
Try:
doStore();
without the &
Geraint.
Hi,
I'm only a couple days into learning perl here.. but I've been having this
problem with subroutines I can't seem to figure out. Could someone explain
what I'm doing wrong here:
#!/usr/bin/perl
require "cgi-lib.pl";
require "ctime.pl";
$date = &ctime(time);
chop($date);
$datafile=">>harv