A question about strings and hexadecimal numbers of special characters

2002-03-06 Thread O. P.
Hi. I'm very new to Perl and have a basic question. How can I convert special characters contained in a string to hexadesimal numbers. I'm trying to access a cgi program but the string I use with the post method contains quote marks, question marks, etc. and the program crashes. I have: $st

RE: RE: A question about strings and hexadecimal numbers of special characters

2002-03-06 Thread O. P.
Thanks Tim. Your answer solves many problems to me. But I have a further question. Sometimes a question mark apears in the middle of a string like that: $string = "/cgi-bin/search.pl?term=who?&lang=english"; where "who?" is a unit and the question mark is part of it. Although I try to escape

can't delete files

2002-03-06 Thread matt stewart
sorry if you get this twice, not sure it got posted the first time! > I've got a nice script that uploads images.Lovely. > but it renames the images, according to their associated record number, > which all works fine, but occasionally i want to replace the image. > now, i know the folder is wr

can't delete files

2002-03-06 Thread matt stewart
I've got a nice script that uploads images.Lovely. but it renames the images, according to their associated record number, which all works fine, but occasionally i want to replace the image. now, i know the folder is writable to, but for some reason, it won't allow the script to either overwrite

RE: A question about strings and hexadecimal numbers of special characters

2002-03-06 Thread Tim Fletcher
>>Sometimes a question mark apears in the middle of a string like that: >>$string = "/cgi-bin/search.pl?term=who?&lang=english"; >>where "who?" is a unit and the question mark is part of it. Although I try >>to escape the question mark in "who?" and I get its hexadecimal number, I >>don't get th

Headers

2002-03-06 Thread Octavian Rasnita
Hi all, Why if I use: print $q->header; print$q->start_multipart_form; the result does not contain the result of the first line, but only the line? And if I ttype: print $q->header; print $q->start_HTML; print $q->start_multipart_form; The result contains only the full header with bu

Re: How can i put the html code in my cgi?!?

2002-03-06 Thread Carl Franks
Are you thinking that CGI stops you using your previous method? If you need to use some of CGI's features, yet include, for example a table that doesn't use any dynamic content, then you CAN still use print start_html; print From: "GsuLinuX" <[EMAIL P

Re: Headers

2002-03-06 Thread Lisa Nyman
Hi, On Wed, 6 Mar 2002, Octavian Rasnita wrote: > Why if I use: > print $q->header; > print$q->start_multipart_form; > > the result does not contain the result of the first line, but only the > line? print $q->header; prints out HTTP headers like 'Content-type: text/html' and not html code

Re: Headers

2002-03-06 Thread fliptop
Octavian Rasnita wrote: > Why if I use: > > print $q->header; > print$q->start_multipart_form; > > the result does not contain the result of the first line, but only the > line? from perldoc CGI: header() returns the Content-type: header. You can provide your own MIME type if you choo

URL Fetcher Java/Perl

2002-03-06 Thread Fred Sahakian
Dont ask but our servers dont support .SHTML extensions so I need a Java script that can do some URL Fetching, or data fetching. I have a java script that works a bit, but can not handle carriage returns in the data file, it will not print if a data file (the fetched document) has a carriage r

RE: URL Fetcher Java/Perl

2002-03-06 Thread John Edwards
"I need a Java script" "I have a java script" This is a mailing list for *Perl* CGI. Do you have a question relating to Perl CGI? Would you like to share it with us? John -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: 06 March 2002 17:23 To: < Subject: URL Fetc

popup_menu help

2002-03-06 Thread DUCHATEAU, GABRIEL
Hi all, I hope somebody can help me here. I have a CGI script creating a popup menu using something like this print $query->popup_menu('menu_name', ['eenie','meenie','minie'], 'meenie'); Is there a way in perl to submit the form autom

RE: popup_menu help

2002-03-06 Thread John Edwards
You can add some javascript code to the field's -onchange section. -Original Message- From: DUCHATEAU, GABRIEL [mailto:[EMAIL PROTECTED]] Sent: 06 March 2002 17:34 To: [EMAIL PROTECTED] Subject: popup_menu help Hi all, I hope somebody can help me here. I have a CGI script creating a po

small projects

2002-03-06 Thread Kamali Muthukrishnan
I have been learning Perl-CGI and is a beginner. I would like to try small projects. Are there any books/tutorials/web sites where I can find small projects, so that I can try these exercises ? Kamali -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

RE: small projects

2002-03-06 Thread Stout, Joel R
Have you been here? http://www.easystreet.com/~ovid/cgi_course/ >From a beginner's standpoint I think Ovid does a good job. > -Original Message- > From: Kamali Muthukrishnan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 06, 2002 9:40 AM > To: [EMAIL PROTECTED] > Subject: small pro

RE: URL Fetcher Java/Perl

2002-03-06 Thread Fred Sahakian
Yes, Since I cant get a PERL script to execute under a .SHTML file anyone know a good Javascript to do this for this? Im sure PERL programmers come across this. How's that? >>> John Edwards <[EMAIL PROTECTED]> 03/06/02 12:23PM >>> "I need a Java script" "I have a java script" This is a mai

Re: URL Fetcher Java/Perl

2002-03-06 Thread Randal L. Schwartz
> "Fred" == Fred Sahakian <[EMAIL PROTECTED]> writes: Fred> Yes, Since I cant get a PERL script to execute under a .SHTML Fred> file anyone know a good Javascript to do this for this? Im sure Fred> PERL programmers come across this. How's that? That's a bit like asking on a Toyota mailing l

Re: How can i put the html code in my cgi?!?

2002-03-06 Thread talham
plz ignore if this is not of interest but sometimes its better to put a / before quotes in print when doing html... it did help me in my restaurant guide mini semester project.. Talha Carl Franks writes: > Are you thinking that CGI stops you using your previous method? > If you need to use some

Commonality of module installation

2002-03-06 Thread Ron Goral
I am working with some hashes and found that you can maintain an ordered hash using Tie::IxHash. The server my site lives on does not have this module installed. Is this module commonly installed on machines? In other words, can I count on this module being present on some user's server or would

CGI Design problem

2002-03-06 Thread Rob Roudebush
Okay, I created a HTML Form that calls a CGI script. After the form is submitted it sends out e-mails with a link inside to certain managers. They follow the link which is a separate HTML page that calls a separate CGI script. Question: I need to keep track of the managers who follow the link an

apple and oranges

2002-03-06 Thread Fred Sahakian
Hi Crew: Here's one-- Im taking in data through a Perl Script with the following conversion: $value = ~s/Apple/Orange/g; This is fine for new data, but each time the program is run it's taking all the data being entered and turning the apples into oranges, any ideas how I get the program to

Re: apple and oranges

2002-03-06 Thread Michael Kelly
On 3/6/02 2:25 PM, Fred Sahakian <[EMAIL PROTECTED]> wrote: > Hi Crew: Hi Fred, > Here's one-- > > Im taking in data through a Perl Script with the following conversion: > > $value = ~s/Apple/Orange/g; > > > This is fine for new data, but each time the program is run it's taking all > the d

Telling the cgi to wait

2002-03-06 Thread Pedro A Reche Gallardo
Dear All, I have a cgi script that uploads two files and then it execute a program using the system call. This program then uses the uploaded files as input, and then it generates a file that I am interested in displaying in the web browser. Unfortunately, the system command does not work and i

Fwd: Re: small projects

2002-03-06 Thread Teresa Raymond
>Fliptop had a guestbook one - I'd appreciate the url also b/c I lost >all of my links when my logic board fried. He may be on the >beginner's list though? > >>I have been learning Perl-CGI and is a beginner. I would like to >>try small projects. Are there any books/tutorials/web sites where

URGENT

2002-03-06 Thread Donn
we're using Spreadsheet::WriteExcel module, i have for example a file test.pl which creates excel file on the same path. test.pl is owned by reserv account. $ ls -l test.pl -rwxr-xr-x 1 reserv other 734 Mar 7 11:54 test.pl $ ./test.pl it successfully creates the file excel.xls on the same pat