Re: Help on reading esc sequence

2007-06-11 Thread Paul Lalli
On Jun 11, 11:05 am, [EMAIL PROTECTED] (Paul Archer) wrote: > The reason this works is that when you read from STDIN, you are getting the > newline from when the user of the program hits return. Using '=~' is > implying a 'match', which will match the string/regexp supplied within the > variable's

Re: Help on reading esc sequence

2007-06-11 Thread Paul Lalli
On Jun 11, 9:23 am, [EMAIL PROTECTED] (Amrita Roy) wrote: > Actually i m running a process using perl script.so i want to do that if i > press ESC from the keyboard it will come out of the loop n comes out of the > function.I am trying to read the esc character using "\e"but it is not > responding.

Re: Help on reading esc sequence

2007-06-11 Thread Paul Archer
The reason this works is that when you read from STDIN, you are getting the newline from when the user of the program hits return. Using '=~' is implying a 'match', which will match the string/regexp supplied within the variable's value. 'eq' means the two strings have to be exactly equal to ea

Re: Help on reading esc sequence

2007-06-11 Thread Susheel Koushik
hi amrita, use if($var1 =~ '\e') inplace of if(var1 eq '\e') On 6/11/07, Amrita Roy <[EMAIL PROTECTED]> wrote: Hello, Actually i m running a process using perl script.so i want to do that if i press ESC from the keyboard it will come out of the loop n comes out of the function.I am trying to

RE: Help downloading a file

2007-05-01 Thread Hellman, Matthew
The original intent was to generate a save-as dialog box instead of displaying the PDF inline? I believe the problem with this is that it can cause blank browser windows to open, which some people don't like. This is a browser issue and I'm not aware of an alternative. Removing the content-disposit

Re: Help downloading a file

2007-05-01 Thread Greg Jetter
On Tuesday May 1 2007 6:56 am, Moon, John wrote: > Below is code I presently use to download to clients and the generated > html. One client objects to the generated html - the > "Content-Disposition" ... Does any one have another method to download > AND display the pdf with perl. > > > sub Displa

Re: Help downloading a file

2007-05-01 Thread Greg Jetter
On Tuesday May 1 2007 6:56 am, Moon, John wrote: > Below is code I presently use to download to clients and the generated > html. One client objects to the generated html - the > "Content-Disposition" ... Does any one have another method to download > AND display the pdf with perl. > > > sub Displa

Re: Help with issuing the correct mime headers

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Help w/Modules

2005-09-27 Thread Bill Stephenson
On Sep 25, 2005, at 2:01 PM, Randal L. Schwartz wrote: That's why I created CGI::Prototype::Hidden... to lazy-load the code for the particular step of the application. Randal, this really piqued my interest and after a little poking around I found this link; http://www.stonehenge.co

Re: Help w/Modules

2005-09-25 Thread Randal L. Schwartz
> "Bill" == Bill Stephenson <[EMAIL PROTECTED]> writes: Bill> Wouldn't it be more efficient for the server to run a small script Bill> that contains only the set-up and sub-routines needed to process a Bill> single "run-mode" instead of loading all the data needed to process Bill> all the "run

Re: Help w/Modules

2005-09-25 Thread Bill Stephenson
On Sep 24, 2005, at 10:59 AM, Bill Stephenson wrote: I'm trying to understand how to convert my CGI scripts to use modules. I worked this problem out. Reading the docs and this page (http://www.perl.com/pub/a/2001/06/05/cgi.html) for CGI::Application has helped me better understand how to us

Re: Help wanted

2005-05-31 Thread Wiggins d'Anconia
Yuanxin wrote: > Hi, > I had a lot of data, which are all x-y values. I stored these data in MySQL > database. Now I wanna use Perl to get these data from database to build a > figure(2-dimensional) and people can use internet to see the figure. In > addition, when people see the figure via inte

Re: Help with php & perl

2004-10-22 Thread David Dorward
On Fri, Oct 22, 2004 at 05:51:06PM +1000, [EMAIL PROTECTED] wrote: > just spent absolutely days re writing all my html file into php with > css & includes for reusable page elements. only to find that my perl > script won't run the css or the php includes. A CSS @import (assuming that is what you

RE: Help needed in extracting html over HTTTPS protocol.

2004-08-04 Thread Sanjay Arora
Anas I have a similar requirement. Can you tell me which perl modules are you using for connecting to http and getting html & which modules for extracting info. I havent got to your stage, so I guess Ill keep an eye on your thread ;-). And Bob, thanks for the tip though its a bit advanced for me

RE: Help needed in extracting html over HTTTPS protocol.

2004-08-04 Thread Bob Showalter
Anas Perwez wrote: > Hi All, > My requirement is to extract html from any site ( HTTPS) and then > parse it for selective contents > > I am able to connect to HTTP sites but when it comes to HTTPS , it is > throwing errors. [ snip LWP code ] Have you read http://search.cpan.org/src/GAAS/libwww-p

Re: Help needed in extracting html over HTTTPS protocol.

2004-08-03 Thread T. Raymond
Anas, I think it is doing that because it is the secure protocol. Presumably, I think that means that others can't tap into it unless they have a username and password or some other authorized access. If you're trying to extract from your own site, then I think you need to download the html into

RE: help with adjusting log file data?

2004-06-11 Thread Ron Goral
> -Original Message- > From: Charles K. Clarkson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 09, 2004 9:19 PM > To: 'Catriona Pure Scents'; [EMAIL PROTECTED] > Subject: RE: help with adjusting log file data? > > > From: Catriona Pure Scent

RE: help with adjusting log file data?

2004-06-09 Thread Charles K. Clarkson
From: Catriona Pure Scents wrote: : Hi Charles, : : thanks immensely. As you can probably tell I am one of those : people who pulled some scripts off the net to get me going, : and insists on making alterations. There is nothing wrong with that. Many people run ve

RE: help with adjusting log file data?

2004-06-09 Thread Charles K. Clarkson
Catriona Pure Scents <[EMAIL PROTECTED]> wrote: : I think I understand what you are getting at : : I have no concept of "join" that you use. run this from the command line: perldoc -f join Or read about join in the 'perlfunc' file that comes with perl's standard documentation.

RE: help with adjusting log file data?

2004-06-08 Thread Charles K. Clarkson
Catriona Pure Scents <[EMAIL PROTECTED]> wrote: : Hi guys, : : Needing a little help with adjusting the data a log file reads to. : : It goes like this currently : @env_vars = keys(%ENV); : : foreach $variable (@env_vars) : { : $log_entry .="$ENV{$variable}\|"; : } There is no need to

Re: Help needed with Spreadsheet::ParseExcel

2004-04-27 Thread Brad Lhotsky
I had a similar experience with a spreadsheet that I had saved from Open Office. Oddly enough, if I opened it in MS Excel, and saved it, and reran said script, all was fine. I don't know what caused it. I'd look into configuring a CellHandler subroutine and using that to print how far along the

Re: help with perl setup...and upgrade

2004-02-24 Thread Wiggins d'Anconia
Catriona Pure Scents wrote: Hi guys, many moons ago when I was a complete novice on perl...(only a little more advance now, but at least I have some scripts running and modifying them as need be..) I had a version of perl that ran on my pc as though it were a web servernot through the command

RE: help with perl setup...and upgrade

2004-02-23 Thread Ash Singh
Use Internet Information Server (IIS) its an add on from the Windows 2000 CD, this will act as your web server. To configure perl on your machine (Win2000), -> right click on my computer icon -> click on properties -> click on advanced -> click on environment variables -> On the System variables

Re: help with progress bar

2004-01-20 Thread Dan Anderson
On Thu, 2004-01-15 at 09:48, zentara wrote: > On Tue, 13 Jan 2004 22:38:18 -0500, [EMAIL PROTECTED] (Gerry > Creighton) wrote: > > >Hi, > >I have a situation where I want people to upload large files to my > >server after filling out a form with several fields. I have an uploader > >form that

Re: help with progress bar -test site

2004-01-18 Thread Gerry Creighton
On Jan 18, 2004, at 12:19 PM, Wiggins d'Anconia wrote: zentara wrote: So now all you have to do is setup the mailings. For example, this code should work, but there are many mail modules available to make it easier. my $mailprog='/usr/sbin/sendmail'; my $email = $emailaddr; my $from = '[EMAIL P

Re: help with progress bar -test site

2004-01-18 Thread Gerry Creighton
On Jan 18, 2004, at 10:44 AM, zentara wrote: On Sat, 17 Jan 2004 22:09:12 -0500, [EMAIL PROTECTED] (Gerry Creighton) wrote: On Jan 17, 2004, at 12:37 PM, zentara wrote: You need a cgi script to generate the form, a plain form won't do. Why do you need this special FormBuilder anyways? You should

Re: help with progress bar -test site

2004-01-18 Thread Wiggins d'Anconia
zentara wrote: So now all you have to do is setup the mailings. For example, this code should work, but there are many mail modules available to make it easier. my $mailprog='/usr/sbin/sendmail'; my $email = $emailaddr; my $from = '[EMAIL PROTECTED]'; open( MAIL, "|$mailprog -t" ) || sa

Re: help with progress bar -test site

2004-01-18 Thread Gerry Creighton
On Jan 17, 2004, at 12:37 PM, zentara wrote: On Sat, 17 Jan 2004 11:54:55 -0500, [EMAIL PROTECTED] (Gerry Creighton) wrote: So can you suggest where to add the form processing to the upload.cgi? I'm good with Flash and actionscripting but am not totally in tune with perl (yet). The guy who wrote

Re: help with progress bar -test site

2004-01-17 Thread Gerry Creighton
On Jan 17, 2004, at 11:28 AM, zentara wrote: On Sat, 17 Jan 2004 00:39:24 -0500, [EMAIL PROTECTED] (Gerry Creighton) wrote: Cool... I forgot to tell you that I can only use the perl version because it allows bigger files to be uploaded. Can't wait to check it out. Now...what about form processing?

Re: help with progress bar -test site

2004-01-17 Thread Gerry Creighton
On Jan 16, 2004, at 6:18 PM, zentara wrote: On Fri, 16 Jan 2004 09:32:30 -0500, [EMAIL PROTECTED] (Zentara) wrote: Well that's disappointing. Well then how do they do it with the megauploader: http://www.raditha.com/megaupload/perl.php Ok I have it working for the most part. You can test it here

Re: help with progress bar

2004-01-16 Thread gerry
> On Fri, 16 Jan 2004 09:32:30 -0500, [EMAIL PROTECTED] (Zentara) > wrote: > >>Yeah, when they open the second window, they can do some tricks. >>I'm going to look closely at that today.I'm gonna figure something >>out. :-) > > Well I got it workingI can see why you had problems. > > 1. Did

Re: help with progress bar

2004-01-15 Thread Gerry Creighton
On Jan 15, 2004, at 2:20 PM, Wiggins d Anconia wrote: On Tue, 13 Jan 2004 22:38:18 -0500, [EMAIL PROTECTED] (Gerry Creighton) wrote: Well that's disappointing. Well then how do they do it with the Megaupload script? That works great and isn't slow BUT it doesn't have form processing. The guy w

Re: help with progress bar

2004-01-15 Thread Wiggins d Anconia
> > On Tue, 13 Jan 2004 22:38:18 -0500, [EMAIL PROTECTED] (Gerry > > Creighton) wrote: > > > > Well that's disappointing. Well then how do they do it with the Megaupload > script? That works great and isn't slow BUT it doesn't have form > processing. The guy who wrote it said that I can paste th

Re: help with progress bar

2004-01-15 Thread gerry
> On Tue, 13 Jan 2004 22:38:18 -0500, [EMAIL PROTECTED] (Gerry > Creighton) wrote: > >>Hi, >>I have a situation where I want people to upload large files to my >>server after filling out a form with several fields. I have an uploader >>form that works great in processing the form, uploading the fil

Re: Help with PPM install

2003-12-25 Thread Wiggins d'Anconia
Charlie somerville wrote: Shouldn't you bbe posting to perl.scripts? i mean, cross posting is rude so don't do it Shall we mention spamming the list posting about threads that are ancient, top posting, and in general not being terribly helpful, 'perl.scripts'?? http://danconia.org "Ash Singh

Re: Help with PPM install

2003-12-25 Thread Charlie somerville
  Shouldn't you bbe posting to perl.scripts? i mean, cross posting is rude so don't do it   "Ash Singh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... I am trying to install Text-CSV from my dos prompt. I downloaded the ppd from activestate perl. I get this erro

Re: help with syntax error

2003-10-29 Thread drieux
On Wednesday, Oct 29, 2003, at 08:28 US/Pacific, Rick Triplett wrote: #!/usr/bin/perl -w print "Enter the radius: \n"; chomp ($radius = ); $area = $radius*$radius*3.14 --^ normally that would need to have a ";" to close it out. if ( $radius <= 0 ) { print "Th

RE: help with syntax error

2003-10-29 Thread Hughes, Andrew
I believe that you need a semicolon after $area = $radius*$radius*3.14 Try that. Andrew -Original Message- From: Rick Triplett [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 11:29 AM To: [EMAIL PROTECTED] Subject: help with syntax error Can someone please help me find the

Re: Help wanted regading approch for displaying live scores

2003-09-23 Thread Todd W.
"Parvez Mohamed" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I am building a application in which i need to > display live stock market prices with out the user > presing the refresh button. Its similer to live game > scores. > > > i need to refresh only some fields not

Re: Help wanted regading approch for displaying live scores

2003-09-23 Thread Octavian Rasnita
You will need to refresh the entire page. Or as you said, you can use iframes. - Original Message - From: "parvez mohamed" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 10:43 AM Subject: Help wanted regading approch for displaying live scores > Hi, > I

RE: Help Re-writing my if statement

2003-08-01 Thread Chris Mortimore
Gidday All, I would like to write this if statement better by combining the two elsif conditions. if( !&check_url ){ print 'The Referrer '.$ENV{'HTTP_REFERER'}.' is not allowed to access this cgi-script!'; } elsif( !&check_email( $data{'toAddress'} ) ){ print 'An email cannot be sent ' . $d

RE: Help with page reloads

2003-07-30 Thread Johnstone, Colin
It works!, Thank you for your help -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Thursday, 31 July 2003 2:50 PM To: Johnstone, Colin; [EMAIL PROTECTED] Subject: Re: Help with page reloads Always group reply so everyone can help and be helped. John

Re: Help with page reloads

2003-07-30 Thread Wiggins d'Anconia
Always group reply so everyone can help and be helped. Johnstone, Colin wrote: Thank You, I tried this but with no success #!/usr/bin/perl -w print 'Location: http://www.mydomain.com/cgi-bin/myform.cgi'; You need to indicate the end of the headers with a double new line: print "Location: htt

Re: Help with page reloads

2003-07-30 Thread Wiggins d'Anconia
Johnstone, Colin wrote: Hi all, I am writing my own form processing script as a learning exercise and want to know how to reload the page after processing the form to clear the forms processor, to prevent the user from refreshing the page and duplicating their submission. Im a PHP guy normally and

Re: help with print MAIL

2003-06-05 Thread Todd Wade
"Catriona Wordsworth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys, > > Needing a little assistance with some issues I am having trying to get my script to print variable details into and email generated by the script. > > so far the script generates the email with (sendma

Re: Help creating HTML for immediate output, and more than once

2003-05-31 Thread Randal L. Schwartz
> "Martin" == Martin Lomas <[EMAIL PROTECTED]> writes: Martin> I hope someone here could help me ... I know Perl, HTML and Martin> Javascript quite well, but CGI not at all. This question has also been asked (and answered) on the perl.beginners list. Not nice to repost it without saying that

Re: Help creating HTML for immediate output, and more than once

2003-05-31 Thread Andrew Brosnan
On 5/30/03 at 2:13 PM, [EMAIL PROTECTED] (Martin Lomas) wrote: > Hi All, > > I hope someone here could help me ... I know Perl, HTML and > Javascript quite well, but CGI not at all. > > I'm writing a simple file-upload Perl script. I have all the form and > file handling stuff done. I want the s

Re: Help using %Hashes

2003-03-25 Thread Horace Franklin Jr.
Thanks, I will try your suggestion and let you know the results. - Original Message - From: "Jason Jolly" <[EMAIL PROTECTED]> To: "Horace Franklin Jr." <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 4:31 PM Subject: Re: Help using %Hashes > Y

Re: Help using %Hashes

2003-03-25 Thread Horace Franklin Jr.
Thanks! - Original Message - From: "brad" <[EMAIL PROTECTED]> To: "Horace Franklin Jr." <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 5:15 PM Subject: Re: Help using %Hashes > google for formmail.pl > > don't try to reinvent the wheel,

Re: Help using %Hashes

2003-03-25 Thread Horace Franklin Jr.
Thanks! > - Original Message - > From: "Bob Showalter" <[EMAIL PROTECTED]> > To: "'Horace Franklin Jr.'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Tuesday, March 25, 2003 3:23 PM > Subject: RE: Help using %Hashes &g

Re: Help using %Hashes

2003-03-25 Thread Horace Franklin Jr.
Tuesday, March 25, 2003 3:19 PM Subject: Re: Help using %Hashes > Horace, > > Are you unsure how to reference the information which will be posted to the > URI kept by the '$url' value? > > I'll gladly help you through getting the post values into your > pro

RE: Help using %Hashes

2003-03-25 Thread Jordan Mclain
you could do this after you initiate the hash. foreach(sort keys %params) { $params{$_} = $cgi->param($_); } > Help! > > I need help using %hashes to receive input from the form below. > > What changes would I make to the syntax of the commented lines below > to do this?. -- To unsu

RE: Help using %Hashes

2003-03-25 Thread Bob Showalter
Horace Franklin Jr. wrote: > Help! > > I need help using %hashes to receive input from the form below. > > What changes would I make to the syntax of the commented lines below > to do this?. Well, none. That code creates the form, which is a different matter from receiving input from the form.

Re: help needed in frames with php

2003-03-16 Thread Randal L. Schwartz
> "Mel" == Mel Awaisi <[EMAIL PROTECTED]> writes: Mel> help needed in frames with php php questions are not really appropriate on a Perl help list, unless there's some Perl component as well. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]>

RE: help needed in frames with php

2003-03-16 Thread Bill Burke
are you using the target attribute? -Original Message- From: mel awaisi [mailto:[EMAIL PROTECTED] Sent: Saturday, March 15, 2003 6:10 PM To: [EMAIL PROTECTED] Subject: help needed in frames with php Hi, help needed in frames with php I have been trying to do this for sometime now, and

RE: Help with File::Find

2003-03-07 Thread Kipp, James
Please ignore this post. This was meant for the perl-beginners list. My apologies. -- > -Original Message- > From: Kipp, James > Sent: Friday, March 07, 2003 1:57 PM > To: [EMAIL PROTECTED] > Subject: Help with File::Find > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Help really needed in this script: error: Prematue end of script header

2003-03-05 Thread Joshua Hoblitt
Mel, I agree with the follow up posting on beginners that says this script should not be run as a CGI. However, just as an FYI, that particular error was being generated by Apache because you weren't outputting an HTTP content type. On another issue I see that you cross posted this message acr

Re: Help really needed in this script: error: Prematue end of script header

2003-03-04 Thread Wiggins d'Anconia
mel awaisi wrote: Hi, I have with the help of one of the guys of this list got this script to take an image from one directory and then rename it with the time and date of the image and then store it onto a new directory. I sotred the image in the cgi-bin, and then tried to run the file, i got

RE: help with HTTP::Request for POST

2003-02-18 Thread Scott Lutz
: 604.638.6020 Toll Free: 1.877.503.9870 http://www.pacificonline.com -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 10:02 AM To: Scott Lutz Cc: cgi cgi-list Subject: Re: help with HTTP::Request for POST On Tuesday, Feb 18, 2003, at 08:43 US/Pacific, Scott Lutz

Re: help with HTTP::Request for POST

2003-02-18 Thread drieux
On Tuesday, Feb 18, 2003, at 10:33 US/Pacific, Scott Lutz wrote: [..] Thanks for the input drieux! All of the information that I have found has said that you can not change the form action using IE, which is why I was led to the server side method. I will try the javascript, to see how it works

Re: help with HTTP::Request for POST

2003-02-18 Thread drieux
On Tuesday, Feb 18, 2003, at 08:43 US/Pacific, Scott Lutz wrote: What I am attempting to do, is do a server side "form action" redirect based on a regex on a field from the form. [..] [Mon Feb 17 17:04:05 2003] [error] [client 66.51.160.131] Premature end of script headers: /var/cgi-bin/parse

Re: help with HTTP::Request for POST

2003-02-18 Thread Felix Geerinckx
on di, 18 feb 2003 16:43:22 GMT, Scott Lutz wrote: > What I am attempting to do, is do a server side "form action" > redirect based on a regex on a field from the form. It now seems that > this is just going to POST the form data, and leave the user hanging. > Is HTTP::Request the best way to dire

Re: Help with Cookies

2003-02-08 Thread CraigD
This is how I did it. if ( @loginfo = CGI::cookie('mspplog') ) { $user_name = $loginfo[0]; $password = $loginfo[1]; $checkPassword = 'true'; } On Friday 07 February 2003 08:07 am, Kipp, James wrote: > > All am I am trying to do now is have a user enter his/her > > name in a

Re: Help in running cgi script to append passwd file, shadow and group

2003-01-27 Thread Glynn S. Condez
From: "Jason S" <[EMAIL PROTECTED]> Guys, thanks for great idea. now i know how to solve this problem :) glen > > > On Fri, 24 Jan 2003 15:30:59 +0800, [EMAIL PROTECTED] (Glynn > > S. Condez) wrote: > > > > >Hi All, > > > > > >I created a cgi perl script, its an account creation script, means

Re: Help (or redirection) w/ Installation of Storable-2.05

2003-01-26 Thread Wiggins d'Anconia
Ed Sickafus wrote: Didn't find a list at CPAN for installing modules. Please point me if this query is out of place. You might have better luck on the [EMAIL PROTECTED] list, despite its name, advanced topics are discussed as well. I know there are several of us on both lists, but some of th

Re: Help in running cgi script to append passwd file, shadow and group

2003-01-24 Thread Jason S
> On Fri, 24 Jan 2003 15:30:59 +0800, [EMAIL PROTECTED] (Glynn > S. Condez) wrote: > > >Hi All, > > > >I created a cgi perl script, its an account creation script, means you > >can add an account to a linux system. > > > >my problem is, the cgi can't append the password, shadow and group > >file.

Re: Help in running cgi script to append passwd file, shadow and group

2003-01-24 Thread zentara
On Fri, 24 Jan 2003 15:30:59 +0800, [EMAIL PROTECTED] (Glynn S. Condez) wrote: >Hi All, > >I created a cgi perl script, its an account creation script, means you >can add an account to a linux system. > >my problem is, the cgi can't append the password, shadow and group >file. How can I make my s

Re: Help in running cgi script to append passwd file, shadow and group

2003-01-24 Thread WilliamGunther
In a message dated 1/24/2003 2:32:26 AM Eastern Standard Time, [EMAIL PROTECTED] writes: > my problem is, the cgi can't append the password, shadow and group > file. How can I make my script to work? I don't have any idea now if > its possible to make the script work I won't act like I know the

Re: Help!

2002-12-28 Thread Wiggins d'Anconia
Always group reply so the list can help as well, as I definitely don't have all the answers :-) ... I am not able to reproduce the problem, copying and pasting your script into a test here, output correct HTML, that did not display extra < characters where you indicated. The only thing I can s

Re: Help!

2002-12-28 Thread Wiggins d'Anconia
I think you are going to need to post a little of the script, specifically the part that prints that section of the HTML and possibly whatever you are using to print your header, as this is a rather specific and infrequent problem. http://danconia.org [EMAIL PROTECTED] wrote: I have a script i

Re: Help: perl DBI

2002-10-30 Thread William McKee
Hi Sarah, You probably should sign up for the dbi-users mailing list at . You can catch db errors using an eval statement. Search the DBI docs for eval and RaiseError for more info. HTH, William -- Lead Developer Knowmad Services Inc. || Internet Appli

Re: Help!! Retrieving Image File

2002-08-22 Thread Bill Moseley
At 11:21 PM 08/21/02 +0800, Connie Chan wrote: >This works for me =) "works" in some measure of the word, yes. >#!Perl no -w >use strict; >use CGI::Carp (fatalsToBrowser); >$| = 1; Why non-buffered? > >my $filepath = 'some/where/the/file/is.jpg"; syntax error. >open IMG, "$file

RE: Help!! Retrieving Image File

2002-08-21 Thread Bob Showalter
> -Original Message- > From: David Zhuo [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 21, 2002 1:41 PM > To: Bob Showalter > Cc: [EMAIL PROTECTED] > Subject: RE: Help!! Retrieving Image File > > > On Wed, 2002-08-21 at 10:44, Bob Showalter wrote:

RE: Help!! Retrieving Image File

2002-08-21 Thread David Zhuo
On Wed, 2002-08-21 at 10:44, Bob Showalter wrote: > > -Original Message- > > From: David Zhuo [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, August 21, 2002 1:12 PM > > To: Connie Chan > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; cgi mailing list > >

RE: Help!! Retrieving Image File

2002-08-21 Thread Bob Showalter
> -Original Message- > From: David Zhuo [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 21, 2002 1:12 PM > To: Connie Chan > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; cgi mailing list > Subject: Re: Help!! Retrieving Image File > > > where do you get the

Re: Help!! Retrieving Image File

2002-08-21 Thread David Zhuo
gt; Connie > > > > > - Original Message - > From: "david" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, August 21, 2002 6:48 AM > Subject: Re: Help!! Retrieving Image F

Re: Help!! Retrieving Image File

2002-08-21 Thread Connie Chan
[.] > > #!/usr/local/bin/perl -w > use strict; > > open IMAGE, 'test.jpg' or die "Failed to open image $!"; > my $buf_chunk_size = 1024 * 16; > my $buffer; > binmode IMAGE; > binmode STDOUT; > > print "Content-Type: image/jpeg\n\n"; > print $buffer while read IMAGE, $buffer, $buf_chunk_siz

Re: Help!! Retrieving Image File

2002-08-21 Thread Bill Moseley
;david" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Wednesday, August 21, 2002 6:48 AM >Subject: Re: Help!! Retrieving Image File > > >> not sure if you already have the answer to this one but you: >&g

Re: Help!! Retrieving Image File

2002-08-21 Thread Connie Chan
and IMAGE both. the read / print process will terminated after 1024k. Why? I don't know either. Rgds, Connie - Original Message - From: "david" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent

Re: Help!! Retrieving Image File

2002-08-20 Thread david
not sure if you already have the answer to this one but you: binmode IMAGE; print "Content-type: image/jpeg\n\n"; while(){ print; } should probably be: print "Content-type: image/jpeg\n\n"; binmode IMAGE; while(){ print; } you need to print the text header first and than print the bin

Re: Help!! Retrieving Image File

2002-08-16 Thread Archie
Thanks 4 replying Connie, but it didn't work. i already did binmode STDOUT, and tried this print "Content-type: image/jpeg\r\n\r\n"; as advise. i just hope some1 here can remind me what else i forgot to do. thanks... Connie Chan <[EMAIL PROTECTED]> wrote in message 001601c2439e$68cc2be0

Re: Help!! Retrieving Image File

2002-08-14 Thread Connie Chan
> Code 1: It didnt work... > > #!/usr/bin/perl > > use CGI; > $query = new CGI; > my $filepath='/home/myaccount/uploads/laptop.jpg'; > > print $query->header('image/jpeg'); > print $filepath; > Of cause, you didn't open the file and read the file. You are trying to print "/home/myaccount/upl

Re: Help Needed: Debugging web applications in perl+cgi+php+mysql on apache+ssl

2002-08-04 Thread zentara
On Sun, 4 Aug 2002 00:17:38 -0700, [EMAIL PROTECTED] (Saurabh) wrote: >(b)The second solution is to use a perl debugger called ptkdb. I am not sure how much >useful is this ptkdb in debugging a web appplication. This is your best bet. You need to deal with the xhost issue when try to do it over

Re: Help Needed: Debugging web applications in perl+cgi+php+mysql on apache+ssl

2002-08-04 Thread Connie Chan
use strict use warnings Will help you to save most of debug time. And. perhaps you still have option C. Thaz, if you need some quick test, you can make the form data becomes uri escaped. or boundary based. So you can test it inline. with warn, and die. you will really what error is happened at

Re: Help with the code please

2002-07-31 Thread zentara
On Tue, 30 Jul 2002 08:18:27 -0700, [EMAIL PROTECTED] (Soheil Shaghaghi) wrote: >Can anyone please help me? It is really hard to tell what you want to do from the information you sent. Your cgi-script dosn't print out any html, nor does it print a location to go to. What do you want? Post the w

Re: Help! which are the correct parameters?

2002-07-03 Thread perl-dvd
ref= . Regards, David - Original Message - From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 01, 2002 11:20 PM Subject: Re: Help! which are the correct parameters? Unfortunately it doesn't work this way. I've tried us

Re: Help! which are the correct parameters?

2002-07-01 Thread perl-dvd
my $stuff = qq^ here is some stuff and more stuff to boot stuff for me and stuff for you ^; $stuff =~ s/stuff/money/gs; # g says match all occurrences # s says treat $stuff as a single line Regards, David - Original Message - From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <[EMAIL P

Re: Help With Perl

2002-06-12 Thread David vd Geer Inhuur tbv IPlib
Ok, what is it that you want? It's hard to read when the code is split up over the page. Maybe it already answered your questions ?? #!/usr/local/bin/perl # $username = param('username'); open(USER, "< user.dat"); while () { chomp; ($name, $site, $site_id, $des, $email, $pass) = split(/\

Re: HELP!

2002-05-01 Thread fliptop
Bob Showalter wrote: > > They are the same as far as the effect on %array. But you > shouldn't use map() in a void context, as it constructs a > result list which is then thrown away. So your iterative > approach is better. sorry, i should have done: my %a = map { $_ => 1 } @a; my @unique

Re: HELP!

2002-05-01 Thread drieux
On Wednesday, May 1, 2002, at 05:10 , Andrew Rosolino wrote: > Say I have an array that contains! > > @array = qw( cool cool dog dog dog ); > > Now I want to sum that up, so that the array only has > 1 COOL and 1 DOG, so it would contain! > > @array = qw( cool dog ); we just went around this on

RE: HELP!

2002-05-01 Thread Bob Showalter
> -Original Message- > From: Gary Stainburn [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 10:53 AM > To: Bob Showalter > Cc: Perl Help > Subject: Re: HELP! > > > On Wednesday 01 May 2002 2:26 pm, Bob Showalter wrote: > [snip] >

Re: HELP!

2002-05-01 Thread Gary Stainburn
On Wednesday 01 May 2002 2:26 pm, Bob Showalter wrote: [snip] > > {$array{$_}++} foreach @array; > > They are the same as far as the effect on %array. But you > shouldn't use map() in a void context, as it constructs a > result list which is then thrown away. So your iterative > approach is better

RE: HELP!

2002-05-01 Thread Bob Showalter
> -Original Message- > From: Gary Stainburn [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 9:50 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Cc: Perl Help > Subject: Re: HELP! > > > On Wednesday 01 May 2002 1:43 pm, fliptop wrote: > > A

Re: HELP!

2002-05-01 Thread Gary Stainburn
On Wednesday 01 May 2002 1:43 pm, fliptop wrote: > Andrew Rosolino wrote: > > Say I have an array that contains! > > > > @array = qw( cool cool dog dog dog ); > > > > Now I want to sum that up, so that the array only has > > 1 COOL and 1 DOG, so it would contain! > > > > @array = qw( cool dog ); >

Re: HELP!

2002-05-01 Thread fliptop
Andrew Rosolino wrote: > Say I have an array that contains! > > @array = qw( cool cool dog dog dog ); > > Now I want to sum that up, so that the array only has > 1 COOL and 1 DOG, so it would contain! > > @array = qw( cool dog ); my %array; map { $array{$_}++ } @array; my @unique = keys %a

Re: help about perl -pi -e

2002-04-25 Thread Alain
Sorry for my previous post, my answer is below On Thursday 25 April 2002 15:41, Boris Zentner wrote: | Hi, | | Am Donnerstag, 25. April 2002 15:20 hast Du geschrieben: | > exact, that's it. | > but i've got the solution to that problem (i forgot to put the trailing | > 's' in my post, but i used

Re: help about perl -pi -e

2002-04-25 Thread Boris Zentner
Hi, Am Donnerstag, 25. April 2002 15:20 hast Du geschrieben: > exact, that's it. > but i've got the solution to that problem (i forgot to put the trailing 's' > in my post, but i used it and it did not work) > the solution is: > perl -p0i -e 's/sub html_base.*//s' *.cgi > and it happily removes

Re: help about perl -pi -e

2002-04-25 Thread Alain
On Thursday 25 April 2002 15:10, you wrote: | I'm not quite sure what you're trying to do with this... but from what | you've provided, the regular expression you wrote will only remove text | matching "sub html_base" on a single line -- and not even the | newline at the end. The '-pi' swi

Re: help about perl -pi -e

2002-04-25 Thread Matthew Weier O'Phinney
I'm not quite sure what you're trying to do with this... but from what you've provided, the regular expression you wrote will only remove text matching "sub html_base" on a single line -- and not even the newline at the end. The '-pi' switches will grab a single line at a time from the cur

Re: Help with an error (CGI::use_named_parameters(1);

2002-03-26 Thread Teresa Raymond
Try use CGI::use_named_parameters(1); >I am reading a book called MySQL & mSQL by O'Reilly. I used one of the >scripts that was inside the book to see how it worked on my Mandrake 8.1 >machine (running Apache). If any of you have this book the script I am talking >about is on page 158 (example 1

  1   2   >