4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Your help with Perl is requested..
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
jaybee
Junior WebHelper
Junior WebHelper


Joined: 21 Nov 2002
Posts: 1

PostPosted: Fri Nov 22, 2002 8:50 pm (14 years, 11 months ago) Reply with QuoteBack to Top

Hello ALL.
I'm new here and have been groping around looking
to see if my problem may have been addressed before.
Unfortunately no.

I'm having a problem with a Guestbook and I'm sure
someone here is capable of solving this.

I use the Perl checker which hosts my pages, to
check the script. Below is what I get in return.
___________________________________
Filename: /cgi-bin/bnbbook.cgi
Results: - Useless use of a constant in void context at /cgi-bin/bnbbook.cgi line 432.

- /cgi-bin/bnbbook.cgi syntax OK
___________________________________
The portion of the script referred to is:

############################
sub get_the_lock
{
$lockfile="$TEMPDIR/bnbbook.lck";
local ($endtime);
$endtime = 60;
$endtime = time + $endtime;
while (-e $lockfile && time < $endtime)
{
# Do Nothing
}
close(CLOSE_FILE, ">$closefile");
}

############################
sub drop_the_lock
{
close($closefile);
unlink($closefile);
}


#############################

Line 432 is:
close(CLOSE_FILE, ">$closefile");
______________________________________

If this is not enough information to get the assistance I need,
I'd be very happy to send a copy of the script to be looked
over.

Thanks for any help I can get. In the meantime I have
downloaded a Microsoft based pearl software and will
be getting my hands dirty, trying to learn Perl.
Thanks again
OfflineView User's ProfileFind all posts by jaybeeSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.045967 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme