[lug-nuts] double colon in perl scripts

From: Brian Lavender (brian@brie.com)
Date: Thu Dec 02 1999 - 19:55:08 PST


I just installed webcal on my development server and I would like
to confirm the meaning of the double colon in the webcal.cgi
script line 24. You can see it at

http://debian/cgi-bin/cvsweb.cgi/webcal/webcal.cgi?annotate=1.1

Of course feel free to try it out at

http://www.brie.com:8080/cgi-bin/webcal.cgi

It looks to me that since we are using strict, and "my" variables go
out of scope when you go into a different file. We want to
make the variable $::calendar visible to other files (or perhaps
I should say the modules) so we put it as $::calendar. This would
be the same as saying $main::calendar.

If I look at webcal_conf.pm on line 76 I see $::calendar which I assume is the
same variable as in webcal.cgi .

http://debian/cgi-bin/cvsweb.cgi/webcal/webcal_conf.pm?annotate=1.1

Am I correct with this assumption?

The cvs for webcal is at http://www.brie.com:8080/cgi-bin/cvsweb.cgi

brian

-- 
Brian Lavender
http://www.brie.com/brian/
****************************************************************************
* To UNSUBSCRIBE from the list, send a message with "unsubscribe lug-nuts"
* in the message body to majordomo@saclug.org. Please direct other
* questions, comments, or problems to lug-nuts-owner@saclug.org.



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:08 PST