source code

2001-12-12 Thread zaka rias
hi anyone have simple web browser script (of course with perl) like lynix ? thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: source code

2001-12-12 Thread nafiseh saberi
hi. look at it... www.summersault.com/software/db_browser/ be successful. Best regards. Nafiseh Saberi www.iraninfocenter.net www.sorna.net Friend in need is a friend indeed. _ > hi > > anyone have simple web

map

2001-12-12 Thread angelo . bettati
Hi to All, I' d like to know if it' s possible to print the number of occurences of letter "o" inside a variable string, using perl function map. This is my code: use CGI; $var = "Good morning"; $num = map {"o"} $var; print qq' Perl Page '; print "The number of elements found is: $num"; print

Re: map

2001-12-12 Thread Jonathan E. Paton
> I' d like to know if it' s possible to print the number > of occurences of letter "o" inside a variable string, > using perl function map. $qty = $string =~ tr/o/o/; Shortest and seemingly the fastest solution. Jonathan Paton __ Do You Yaho

problems with gd.pm

2001-12-12 Thread Wagner Garcia Campagner
Hi, I'm trying to compile a script that is using gd.pm. But it seems that this library is not installed in my activestate version (5.6.1.629). Is there a way for me to use this script with this version of activestate or use another library? Thanks in advance, Wagner -- To unsubscribe, e

Creating a CGI menu

2001-12-12 Thread Gerry Jones
I want to create a menu/navigational section for a website I plan on building, and I would like to know if there are any easy-to-use modules I could use, or if there's another way. My website will have many levels and I don't fancy copying, pasting and tweaking the HTML to get the menu to look

Re: Creating a CGI menu

2001-12-12 Thread Brett W. McCoy
On Wed, 12 Dec 2001, Gerry Jones wrote: > I want to create a menu/navigational section for a website I plan on > building, and I would like to know if there are any easy-to-use modules I > could use, or if there's another way. My website will have many levels and I > don't fancy copying, pasting

Re: Creating a CGI menu

2001-12-12 Thread Francesco Scaglioni
If you look at O'Reilly's cgi programming with perl book there is a mechanism there which can be modified to do exactly what you want. The following was adapted from it : # initialise subject listings one section per subdirectory under # ../data opendir ( DIR, "../data" ) or die "Cannot open s

Re: Creating a CGI menu

2001-12-12 Thread Marty Landman
At 03:05 PM 12/12/01 +, Gerry Jones wrote: >I want to create a menu/navigational section for a website I plan on >building, and I would like to know if there are any easy-to-use modules I >could use, or if there's another way. I wrote a web basing content management tool to do this called SIM

Interesting Chop question.

2001-12-12 Thread Andre` Niel Cameron
Hi, I have a pain in the butt array that SOMETIMES has a CR at the end and sometimes does not. Can anyone think of a way to test to see if the \n is there and if it is then chop else no chop? Cause if I just use chop then it starts chopping off letters sometimes... Regards, Andre` C. Technical

Re: Interesting Chop question.

2001-12-12 Thread Brett W. McCoy
On Wed, 12 Dec 2001, Andre` Niel Cameron wrote: > I have a pain in the butt array that SOMETIMES has a CR at the end and > sometimes does not. Can anyone think of a way to test to see if the \n is > there and if it is then chop else no chop? Cause if I just use chop then it > starts chopping of

Re: Interesting Chop question.

2001-12-12 Thread Gerry Jones
On Wednesday 12 December 2001 16:22, Andre` Niel Cameron wrote: > Hi, > > I have a pain in the butt array that SOMETIMES has a CR at the end and > sometimes does not. Can anyone think of a way to test to see if the \n is > there and if it is then chop else no chop? Cause if I just use chop then

RE: [CGI] Interesting Chop question.

2001-12-12 Thread Hershey, Ernie
Use chomp(), which is just like chop() but will only remove the character if it's equal to the $/ variable (which is \n by default). Ernie Hershey > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf > Of Andre` Niel Cameron > Sent: Wednesday, Dec

Re: [CGI] Interesting Chop question.

2001-12-12 Thread sherzodR
Ok, if you just want to get rid of a trailing space, use chomp() function instread of chop(). Coz chop() trims the the last character, and chomp() trims the record seperator ( $/ ) which is by default a new line that keeps giving you pain :-) Andre` Niel Cameron wrote: ANC: Date: Wed, 12

Re: [CGI] Interesting Chop question.

2001-12-12 Thread SOARES Philippe
I think using chomp instead of chop should do it... there should be no need for test. Philippe Soares Andre` Niel Cameron a écrit : > Hi, > > I have a pain in the butt array that SOMETIMES has a CR at the end and > sometimes does not. Can anyone think of a way to test to see if the \n is > the

Re: [CGI] Interesting Chop question.

2001-12-12 Thread Jeff 'japhy' Pinyan
On Dec 12, Andre` Niel Cameron said: >I have a pain in the butt array that SOMETIMES has a CR at the end and >sometimes does not. Can anyone think of a way to test to see if the \n is >there and if it is then chop else no chop? Cause if I just use chop then it >starts chopping off letters somet

Re: Creating a CGI menu

2001-12-12 Thread Gerry Jones
Thanks for the tips guys. Francesco: where in the book did you find the code you adapted? I've got the book (I had a look before posting), but short of scanning every page, I couldn't find it. Brett: I now know next to nothing about SSI's, which is more than I knew before reading your post.

Re: [CGI] Interesting Chop question.

2001-12-12 Thread Andre` Niel Cameron
I need to be more carefull what I ask for:) Thanks for the 13 responses:) I had acctually never heard of Chomp but I will give it a shot thanx all! Regards, Andre` C. Technical Support ԿԬ - Visit our support manual at h

Re: [CGI] Interesting Chop question.

2001-12-12 Thread Darren Duncan
On Wed, 12 Dec 2001, Andre` Niel Cameron wrote: > I have a pain in the butt array that SOMETIMES has a CR at the end and > sometimes does not. Can anyone think of a way to test to see if the \n is > there and if it is then chop else no chop? Cause if I just use chop then it > starts chopping off

Re: Interesting Chop question.

2001-12-12 Thread Brett W. McCoy
On Wed, 12 Dec 2001, Brett W. McCoy wrote: > > I have a pain in the butt array that SOMETIMES has a CR at the end and > > sometimes does not. Can anyone think of a way to test to see if the \n is > > there and if it is then chop else no chop? Cause if I just use chop then it > > starts chopping

Re: Creating a CGI menu

2001-12-12 Thread Curtis Poe
--- Gerry Jones <[EMAIL PROTECTED]> wrote: > I want to create a menu/navigational section for a website I plan on > building, and I would like to know if there are any easy-to-use modules I > could use, or if there's another way. My website will have many levels and I > don't fancy copying, pas

advice required

2001-12-12 Thread Kris G Findlay
hi guys, the problem i have is this. i am running the UK Adhesions Society Website being non profit and with little funding our present server is capable of * perl/cgi * ssi * html/shtml and we cant afford to upgrade the server at present. the site is about t