Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Perl counter in cgi-bin

by davido (Cardinal)
on Jun 05, 2004 at 15:36 UTC ( #361619=note: print w/replies, xml ) Need Help??

in reply to Perl counter in cgi-bin

This isn't directly related to your problem, but could/will become a problem once you do get the script running: You need to be flocking your counter datafile while it's in use. Otherwise, what's to prevent two scripts from opening it at the same time if two vistors hit your page at roughly the same instant?

Also, why is your counter iterating through each digit of $data and printing it with a \n newline after each digit? The browser isn't going to render newlines unless you use the <br> tag.

And why is $number wrapped in { ... } brackets within your final print statement?


Replies are listed 'Best First'.
Re^2: Perl counter in cgi-bin
by edeita2 (Novice) on Jun 05, 2004 at 20:00 UTC
    Thanks for your comments, Dave, I think I got carried away while I`m wrapping the $number with braces, I thought I was using normal parentheses, as you said I have to modify some directives on my Apache httpd.conf file to get the perl script runnnig, cos` the SSI began running after I changed / added some options and directives god bless

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://361619]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2023-09-21 12:47 GMT
Find Nodes?
    Voting Booth?

    No recent polls found