Re: subroutine problem...

2001-06-08 Thread Jeremy Gray
> >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

subroutine problem...

2001-06-08 Thread Jeremy Gray
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