Re: problem with passing variables

2011-12-30 Thread nat
Mark, I'm kind of new with perl, but from what I see, you're using a single quote when defining $sql, and it should be qq for the interpolated string. With the single quote (q) it is a literal. Hope this helps. On Friday, December 30, 2011 11:17:30 AM Mark Haney wrote: > I'm not sure

Re: Problem with uploader

2008-11-24 Thread Adam Jimerson
On Saturday 22 November 2008 11:23:28 pm Owen wrote: > > I apologize for not having the rest of your thread, but don't forget > that CGI::Carp can be used, one use is in the set_message routine > > use CGI::Carp qw(fatalsToBrowser set_message); > set_message("Please report details of this error to

Re: Problem with uploader

2008-11-22 Thread Owen
> On Friday 21 November 2008 11:23:11 am you wrote: >> On Tue, 2008-11-18 at 10:49 -0500, Adam Jimerson wrote: >> > >> > If the open failed then wouldn't the die kick in and at least say something in the server logs? Also how would one go around and >> get a >> > more descriptive error message? F

Re: Problem with uploader

2008-11-22 Thread Adam Jimerson
On Friday 21 November 2008 11:23:11 am you wrote: > On Tue, 2008-11-18 at 10:49 -0500, Adam Jimerson wrote: > > > > If the open failed then wouldn't the die kick in and at least say > > something in the server logs? Also how would one go around and get a > > more descriptive error message? For te

Re: Problem with uploader

2008-11-21 Thread Matthew Whipple
On Tue, 2008-11-18 at 10:49 -0500, Adam Jimerson wrote: > Matthew Whipple wrote: > > > > > The open must have failed. You could work on getting a more descriptive > > error message but I'd suggest starting with the the path and > > permissions. Also check to make sure existing files are handled

Re: Problem with uploader

2008-11-19 Thread Adam Jimerson
Matthew Whipple wrote: > > The open must have failed. You could work on getting a more descriptive > error message but I'd suggest starting with the the path and > permissions. Also check to make sure existing files are handled > properly. Make sure the path used is relative to its environment

Re: Problem with uploader

2008-11-18 Thread Matthew Whipple
On Sun, 2008-11-16 at 21:31 -0500, Adam Jimerson wrote: > On Sunday 16 November 2008 9:10:19 pm you wrote: > > > > > You'll want to look in the error log to see what is there. > > > > Sean > > All the Apache error logs says is "print () on closed Filehandle OUTFILE at > /srv/www/cgi-bin/upload l

Re: Problem with uploader

2008-11-18 Thread Adam Jimerson
Matthew Whipple wrote: > > > The die message would most likely be written into the server's log. A > quick fix to more easily get the error messages would be using > CGI::Carp, a "use CGI::Carp qw(fatalsToBrowser)" should show you the > error on the page. Using CGI::Carp didn't produce any err

Re: Problem with uploader

2008-11-18 Thread vendion
On Nov 17, 1:54 am, [EMAIL PROTECTED] (Owen) wrote: > On Sun, 16 Nov 2008 16:05:15 -0500 > > Adam Jimerson <[EMAIL PROTECTED]> wrote: > > I'm trying to make a CGI script to upload files remotely onto my > > server, to get around my uni blocking everything but port 80, but I > > have ran into a prob

Re: Problem with uploader

2008-11-18 Thread Adam Jimerson
On Sunday 16 November 2008 9:10:19 pm you wrote: > > You'll want to look in the error log to see what is there. > > Sean All the Apache error logs says is "print () on closed Filehandle OUTFILE at /srv/www/cgi-bin/upload line 46", but I do have the filehandle open in the script. -- "We must pl

Re: Problem with uploader

2008-11-18 Thread Sean Davis
On Sun, Nov 16, 2008 at 4:05 PM, Adam Jimerson <[EMAIL PROTECTED]> wrote: > I'm trying to make a CGI script to upload files remotely onto my server, to > get around my uni blocking everything but port 80, but I have ran into a > problem with it. I followed the documentation on CPAN for uploading

Re: Problem with uploader

2008-11-17 Thread Matthew Whipple
> > Running it locally prints out the generated HTML and it looks right and the > page does open correctly on my server but there is not file in /tmp and the > mail is never sent and I don't know if it is a problem with opening the > OUTFILE handle because the die command doesn't kick in from

Re: Problem with uploader

2008-11-16 Thread Owen
On Sun, 16 Nov 2008 16:05:15 -0500 Adam Jimerson <[EMAIL PROTECTED]> wrote: > I'm trying to make a CGI script to upload files remotely onto my > server, to get around my uni blocking everything but port 80, but I > have ran into a problem with it. I followed the documentation on > CPAN for upload

Re: Problem with Fcntl.pm in a compiled(perlcc) Perl-cgi program

2007-02-07 Thread Tom Phoenix
On 2/7/07, I BioKid <[EMAIL PROTECTED]> wrote: I have a compiled perl-cgi program (using perlcc compiled on a 32bit Linux Machine), now I have moved my program to another machine (64bit). Now I am not able to run the program. Have you tried running the non-compiled version (i.e., your real Pe

Re: Problem with https post using LWP

2005-08-01 Thread Denzil Kruse
Hi Wiggins, Nope, that's all news to me! Thanks for the help, I'll look into it. Denzil --- Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: > Denzil Kruse wrote: > > Have you read: > > http://search.cpan.org/src/GAAS/libwww-perl-5.803/README.SSL > > And do you have an appropriate SSL interface

Re: Problem with https post using LWP

2005-08-01 Thread Wiggins d'Anconia
Denzil Kruse wrote: > Hi all, > > I'm trying send an https post: > > my $url = "https://some.secure.server/secure.dll";; > > my $ua = LWP::UserAgent->new; > > # assemble the request > # > my $request = HTTP::Request->new(POST => "$url"); > $request->content_type('application/x-www-form-urlencod

Re: Problem with script requiring valid referrer

2005-02-08 Thread David Dorward
On Tue, Feb 08, 2005 at 11:43:05AM -0800, Chris Schults wrote: > In both cases, our visitors swear that they are linking to these scripts > from valid Grist pages. Any ideas why some people are getting the error > messages? The referer header is optional, and when it is used there are a number of

Re: Problem with flock

2004-09-27 Thread Gunnar Hjalmarsson
Wiggins d Anconia wrote: You haven't shown us your 'use' statements, I suspect you didn't import the LOCK_ constants, perldoc -f flock Adding: use Fcntl ':flock'; # import LOCK_* constants Should help. I think you need to do: use Fcntl qw(:DEFAULT :flock); or else Perl will complain about O_RDW

Re: Problem with flock

2004-09-27 Thread Wiggins d Anconia
> Variations on the following code snippet have run successfully before, > but now the compiler halts with the complaint > " Bareword "LOCK_EX" not allowed while "strict subs" in use at > student_info_viewer.cgi line 47" > Can someone help me see what I am overlooking? > You haven't shown us you

Re: Problem using hidden variables

2004-03-06 Thread zsdc
Kasturirangan Rangaswamy wrote: I have a perl program that has an include directive calling another Perl program in it. The structure is somewhat as follows first.pl -- #!/usr/local/bin/perl require "second.pl" $q = new CGI; print $q->hidden(-name='first', value='1'); second($q); End of f

Re: Problem installing a module

2004-03-03 Thread WC -Sx- Jones
Octavian Rasnita wrote: Hello all, Does anyone know how can I configure the installation for a perl module if I want to install it using CPAN library? I want to install the perl module DBD::mysql and if I try: perl -MCPAN -e "install DBD::mysql;" It fails installing the module and it tells me th

Re: Problem while searching and printing data from a text file into a HTML page

2004-02-22 Thread zsdc
Shalabh wrote: > i have a | delimited text data file and i want a perl script which > accepts an input from a textbox on a html page(search.html) and search the > lines containing that string and displays them in a html page > format(show.html). Any help is appreciated. the html code for search

Re: Problem writing to a file

2003-09-17 Thread Dan Anderson
> many ways to solve the problem. Amongst the real issues that > the person will ultimately need to work out is whether it is > really SANE to be writing temp files to begin with I mean Yes! That is the other thing. If you write a script that writes temp files you should consider it LOCAL ON

Re: Problem writing to a file

2003-09-17 Thread drieux
On Wednesday, Sep 17, 2003, at 18:02 US/Pacific, Dan Anderson wrote: [..] It is possible to use .htaccess files, apache config directives, and burying 777 directories in 700 directories to add to the security of having a 777 directory. dan, my complements! on the XML.document - and yes, there ar

Re: Problem writing to a file

2003-09-17 Thread Dan Anderson
> less acceptable on more and more web-sites. Prudence > generally dictates 755 where other members of your group > and the rest of the world can read and execute. It is possible to use .htaccess files, apache config directives, and burying 777 directories in 700 directories to add to the securi

Re: Problem writing to a file

2003-09-17 Thread drieux
On Wednesday, Sep 17, 2003, at 14:15 US/Pacific, John Park wrote: [..] Although I don't understand why I can't write to the same directory my CGI scripts are located in. I've done this before on Free Webhosts like tripod and netfirms. [..] while we are all deeply and emotionally committed to our

Re: Problem writing to a file

2003-09-17 Thread drieux
On Wednesday, Sep 17, 2003, at 18:50 US/Pacific, ram Osuri wrote: I agree with your assesment .. to solve this problem you might want to do a chmod 777 newfile.txt and then run the program it will work then Actually there are two problems with this. a. there is no reason to set the execute bits

Re: Problem writing to a file

2003-09-17 Thread John Park
On Wednesday, September 17, 2003, at 03:56 PM, drieux wrote: Remember that most web servers are running as the web-server uid - www or apache - and so can only 'write' where that uid has 'write permission'. It can of course read/execute anything that is 'world readable/executable' but as a genera

Re: Problem writing to a file

2003-09-17 Thread drieux
On Wednesday, Sep 17, 2003, at 11:59 US/Pacific, John Park wrote: [..] This is what my script looks like: #!/usr/bin/perl use CGI; ... ... open(FILE,">newfile.txt") || die("newfile.txt: $!"); #script stops here due to permissions [..] that is the correct syntax - although you might not want to '

RE: Problem writing to a file

2003-09-17 Thread Mark Weisman
John, I may be a little old fashioned, however, the code below seems to work OK. >open(INFILE, "@info = ; >close(INFILE); Sincerely in Christ, Mark-Nathaniel Weisman President / Owner Outland Domain Group Consulting Anchorage / Washington DC / Bellevue [EMAIL PROTECTED] -Original Message

Re: Problem with script headers.

2003-06-21 Thread Todd W.
"Nicholas Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > List: news.cgi, open.cgi, login.cgi, home.cgi, zip.cgi, cloute.cgi, and > about 30 others > > All these files are chmod 755, as are the directories they are contained in, > and the ones above them as well. > > I hope I

RE: Problem with script headers.

2003-06-20 Thread Bob Showalter
-- > From: "Bob Showalter" <[EMAIL PROTECTED]> > To: "'Nicholas Davey'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, June 18, 2003 8:41 AM > Subject: RE: Problem with script headers. > > > > Nicholas Davey wrote

Re: Problem with script headers.

2003-06-18 Thread Nicholas Davey
www.vadtec.net [EMAIL PROTECTED] - Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Nicholas Davey'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June 18, 2003 8:41 AM Subject: RE: Problem with script headers

RE: Problem with script headers.

2003-06-18 Thread Bob Showalter
Nicholas Davey wrote: > Hi. > > Okay, I have been over my script about a hundred times, and > all my syntax is perfect. However, when I view my page on the net, I > get this: > > Internal Server Error > The server encountered an internal error or misconfiguration > and was unable to complete you

RE: Problem with script headers.

2003-06-18 Thread Scot Robnett
uot; <[EMAIL PROTECTED]> Newsgroups: perl.beginners.cgi To: <[EMAIL PROTECTED]> Sent: Wednesday, June 18, 2003 12:57 AM Subject: RE: Problem with script headers. > Nicholas Davey <[EMAIL PROTECTED]> wrote: > : > : I hope I gave you enough info to maybe see > : why inde

Re: Problem with script headers.

2003-06-17 Thread Nicholas Davey
aders" which means the script isnt even running fully before the problem arises. www.vadtec.net [EMAIL PROTECTED] - Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> Newsgroups: perl.beginners.cgi To: <[EMAIL PROTECTED]> Sent: Wednesday, June 18, 20

RE: Problem with script headers.

2003-06-17 Thread Charles K. Clarkson
Nicholas Davey <[EMAIL PROTECTED]> wrote: : : I hope I gave you enough info to maybe see : why index.cgi is the only freaking page that : doesnt work. IMO you have two choices. 1 - Hire a programmer to debug it and have her sign a confidentiality agreement. 2 - Post the code for index.c

Re: Problem with script headers.

2003-06-17 Thread Nicholas Davey
uot; <[EMAIL PROTECTED]> Newsgroups: perl.beginners.cgi To: "Nicholas Davey" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, June 15, 2003 1:26 AM Subject: RE: Problem with script headers. > What are the permissions set to? Have you chmod'd to 755 (-r-x)? Permissi

Re: Problem with script headers.

2003-06-15 Thread drieux
On Friday, Jun 13, 2003, at 07:45 US/Pacific, Nicholas Davey wrote: [..] failed to open log file fopen: Permission denied [Fri Jun 13 07:45:57 2003] [error] [client 64.207.81.146] Premature end of script headers: /cgi-bin/index.cgi Don't worry about the path. All that matt

Re: Problem with script headers.

2003-06-15 Thread Kristofer Hoch
--- Nicholas Davey <[EMAIL PROTECTED]> wrote: > Hi. > > Okay, I have been over my script about a hundred times, and all my > syntax is perfect. However, when I view my page on the net, I get > this: > > Internal Server Error > The server encountered an internal error or misconfiguration and was

RE: Problem with script headers.

2003-06-14 Thread Scot Robnett
What are the permissions set to? Have you chmod'd to 755 (-r-x)? Permission will be denied unless the script is set to executable. How can we verify that your content headers are perfect unless you post the code? You tell us not to worry about the path and ask us to figure out what could be wrong,

RE: Problem with regular expressions!!!

2003-03-19 Thread Hanson, Rob
none). $test =~ /foo.*?bar/; Also... + = 1 or more (greedy) +? = 1 or more, non-greedy. Rob -Original Message- From: Rob Benton [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 2:07 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Problem with regular expressions!!! H

Re: Problem with regular expressions!!!

2003-03-19 Thread Rob Benton
How does it translate? * = 0 or more of preceding char ? = 1 or 0 of preceding char *? = ??? On Tue, 2003-03-18 at 21:41, Michael Kelly wrote: > On Tue, Mar 18, 2003 at 05:53:45PM -0600, Rob Benton wrote: > > It looks odd to me b/c * and ? are both quantifiers... > > * and ? alone are both quan

Re: Problem with regular expressions!!!

2003-03-19 Thread Michael Kelly
On Tue, Mar 18, 2003 at 05:53:45PM -0600, Rob Benton wrote: > It looks odd to me b/c * and ? are both quantifiers... * and ? alone are both quantifiers, but *? is a non-greedy *. -- Michael [EMAIL PROTECTED] http://www.jedimike.net/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Problem with regular expressions!!!

2003-03-18 Thread drieux
On Tuesday, Mar 18, 2003, at 15:46 US/Pacific, Peter Kappus wrote: I also had no problem... "myfile.jpeg" =~ /(.*?)\.(.*)/; print $2; gives me "jpeg" Can we see the rest of your code? I think the problem may be in the value of $file_completename... [..] I think the OP may have a problem with wh

Re: Problem with regular expressions!!!

2003-03-18 Thread Wiggins d'Anconia
Hughes, Andrew wrote: This is a newbie observation, but aren't you not supposed to name one of your own variables with a number as the first value after a $, @, or % as in the case of $2? Could this be part of the problem? Just to make sure this doesn't slip through, in his case $2 refers to th

RE: Problem with regular expressions!!!

2003-03-18 Thread Peter Kappus
I also had no problem... "myfile.jpeg" =~ /(.*?)\.(.*)/; print $2; gives me "jpeg" Can we see the rest of your code? I think the problem may be in the value of $file_completename... -Peter -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Problem with regular expressions!!!

2003-03-18 Thread Marcelo Taube
ll keep looking at it. A questio: Should the 'split' version of the same code be faster? Original Message Follows From: "Kipp, James" <[EMAIL PROTECTED]> To: "'Marcelo Taube'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: RE: Problem

Re: Problem with regular expressions!!!

2003-03-18 Thread Rob Benton
It looks odd to me b/c * and ? are both quantifiers which usually triggers an error when you try to run it. See if this works for you: $file_completename =~ /([^.]*)\.(.*)/; On Tue, 2003-03-18 at 15:28, Marcelo Taube wrote: > As u probably have guessed some part of my code is not working proper

Re: Problem with regular expressions!!!

2003-03-18 Thread Brett W. McCoy
On Tue, 18 Mar 2003, Marcelo Taube wrote: > As u probably have guessed some part of my code is not working properly and > i don't understand why!! > > This is the code. > # > $file_completename =~ /(.*?)\.(.*)/; > if ($2 eq $extension]) { > #DO SOMETHING!!! >

RE: Problem with regular expressions!!!

2003-03-18 Thread Kipp, James
> > This is the code. > # > $file_completename =~ /(.*?)\.(.*)/; > if ($2 eq $extension]) { > #DO SOMETHING!!! > } > # did u turn on warnings and use strict ?? did you catch the ] at the end of $extension? i tried this on

RE: Problem with regular expressions!!!

2003-03-18 Thread Hughes, Andrew
This is a newbie observation, but aren't you not supposed to name one of your own variables with a number as the first value after a $, @, or % as in the case of $2? Could this be part of the problem? Andrew -Original Message- From: Marcelo Taube [mailto:[EMAIL PROTECTED] Sent: Tuesday,

Re: Problem with script:usage

2003-03-06 Thread drieux
On Wednesday, Mar 5, 2003, at 17:44 US/Pacific, mel awaisi wrote: [..] Could someone please look at my script and tell me why i am getting this!!! please [EMAIL PROTECTED] cgi-bin]# ./renamer.pl& [2] 11033 [1] Exit 127renamer.pl [EMAIL PROTECTED] cgi-bin]# usage: ./renamer.pl in

RE: Problem Installing the NMS FormMail program

2003-01-13 Thread Joel Hughes
Hi Mike, Are you sure sendmail is up and running ok on the box? joel -Original Message- From: Mike Butler [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 14:18 To: [EMAIL PROTECTED] Subject: Problem Installing the NMS FormMail program I'm trying to install the NMS FormMail program on

Re: Problem with character sets?

2003-01-02 Thread Miroslav Suchy
Anette Seiler wrote: Is there some central variable in Linux which gives the character set used? I ask, because I seem to have this problem all over. Nedit or Vim cannot display diacritics, even the console has problems. Yes, the (my) variables are: LANG=cs_CZ LANGUAGE=cs LC_ALL=cs_CZ LC_CTY

Re: Problem with the code

2002-08-12 Thread perl-dvd
$self->{_Email} =~ /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/ || $self->{_Email} !~ /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/ should be $self->{_Email} =~ /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/ || $self->{_Email} !~ /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/ Regards,

Re: Problem with the code

2002-08-10 Thread Felix Geerinckx
on Sat, 10 Aug 2002 07:41:39 GMT, Soheil Shaghaghi wrote: > The following sub checks for bad e-mail address, and reports it: [code snipped] > However, the code is rejecting the domains ending with .info, and > .name (the reason is that it has 4 digits after the zero) > Can someone please tell m

RE: problem with O_RDONLY

2002-07-29 Thread Bob Showalter
> -Original Message- > From: Soheil Shaghaghi [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 27, 2002 1:43 AM > To: [EMAIL PROTECTED] > Subject: problem with O_RDONLY > > > Hello everyone, > I have a program that uses "O_RDONLY" extensively. > After upgrading to Perl 5.6.1, every time

RE: problem with #exec

2002-04-29 Thread Bob Showalter
> -Original Message- > From: CMS [mailto:[EMAIL PROTECTED]] > Sent: Saturday, April 27, 2002 10:11 PM > To: cgi > Subject: problem with #exec > > > Here one, > > I have the > on our web page, > > this error is display were the tag is: > > [an error occurred while processing this direc

Re: problem with #exec

2002-04-28 Thread Octavian Rasnita
7;Phinney" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 28, 2002 4:10 PM Subject: Re: problem with #exec On Sat, 27 Apr 2002 22:11:18 -0400, Cms wrote: > I have the on our web page, > this error is display were the tag is: > [an error occurred while processing t

Re: problem with #exec

2002-04-28 Thread Matthew Weier O'Phinney
On Sat, 27 Apr 2002 22:11:18 -0400, Cms wrote: > I have the on our web page, > this error is display were the tag is: > [an error occurred while processing this directive] on the website, > and this is the error in the log file; > > [Sat Apr 27 20:37:18 2002] > httpd: exec used but not allowed >

Re: problem sending mail

2002-04-11 Thread Skymarket Postmaster
> Hi all > I am trying to send a mail with the following code and the last print > statement doesn't print, ie, the mail is not sent. > This code is called on submitting a form on the web > > open(MAIL, "/usr/sbin/sendmail -oi -t") || die "Can't open mail"; > print MAIL < To:

Re: problem sending mail

2002-04-10 Thread Ask Bjoern Hansen
[EMAIL PROTECTED] (T3tsu0) writes: > sub send_mail { > open(MAIL,"|$mail_prog -t") || &error("unable to send mail to: > $to_name - $to_addr"); [...] > close(MAIL); you really want to put error checking on the close() too. In many cases you won't be told until then if the open fa

RE: problem sending mail

2002-04-10 Thread t3tsu0
print MAIL "Subject: $subject\n"; print MAIL "$content\n"; close(MAIL); print "Mail to: $to_name - $to_addr, completed."; } -Original Message----- From: Aman Raheja [mailto:[EMAIL PROTECTED]] S

Re: problem sending mail

2002-04-10 Thread Elaine -HFB- Ashton
Aman Raheja [[EMAIL PROTECTED]] quoth: *>Hi all *>I am trying to send a mail with the following code and the last print *>statement doesn't print, ie, the mail is not sent. *>This code is called on submitting a form on the web *> *>open(MAIL, "/usr/sbin/sendmail -oi -t") || di

Re: problem sending mail

2002-04-10 Thread Aman Raheja
It didn't work either way as suggested using -t only or changing the delimiting tag with print statetent I tried to do the same on the command line and it works. I wonder what is missing here. Help is greatly appreciated Aman >From: "Aman Raheja" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], [EM

Re: Problem in retrieving param from cookie

2002-04-10 Thread Ng Yuen Soo
t; <[EMAIL PROTECTED]> To: "ChaoZ InferNo" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 9:20 PM Subject: Re: Problem in retrieving param from cookie > Have you tried the following? > > my %answers = $q->cookie("my_cookie

Re: Problem in retrieving param from cookie

2002-04-10 Thread Carl Franks
Have you tried the following? my %answers = $q->cookie("my_cookie"); print "$answers{q1} $answers{q2} $answers{q3}"; #etc... Carl > Let's say if I create a cookie with $questions and $answers value pairs > where $questions consists of q1, q2, q3, q4, q5, while $answers consists of > a1, a2, a3,

Re: Problem in running CGI script with PWS server

2002-03-26 Thread Connie Chan
Is that PWS in terms of Personal Web Server by MS ? If I didn't remember it wrongly, you can't run perl script there, but ASP instead. Anyway, if you try to run CGI, I would like to tell the CGI-BIN is just the location where your scripts are putting in ( Maybe a virtual directory, depends on y

Re: Problem with cgi scripts

2002-02-08 Thread Curtis Poe
--- Charles Waterman <[EMAIL PROTECTED]> wrote: > When I try to run a CGI script on my webhost server with "use CGI > qw/:standard/;" it does not work. What up with that "use CGI qw/:standard/;" is perfectly valid syntax (and even good practice). However, "it does not work" does not give

Re: Problem passing "action" parameter from a form

2001-12-19 Thread Curtis Poe
--- fliptop <[EMAIL PROTECTED]> wrote: > try doing this: > > use CGI; > use Data::Dumper; > my $Q = new CGI; > my $ACTION = $Q->param('action') || ''; > print "ACTION: ", Dumper($ACTION); > > and see what you're getting for $ACTION Perhaps even better would be to do this: print Dumper( $Q

Re: Problem passing "action" parameter from a form

2001-12-19 Thread fliptop
[reply cc'd to list] Kris Seraphine wrote: > yes it is. unless you have it spelled wrong in the form, i don't see why it shouldn't be working. try doing this: use CGI; use Data::Dumper; my $Q = new CGI; my $ACTION = $Q->param('action') || ''; print "ACTION: ", Dumper($ACTION); and see what

Re: Problem passing "action" parameter from a form

2001-12-18 Thread fliptop
Kris Seraphine wrote: > I want to use one script with multiple functions to > process a variety of forms/information. > > in my script I declare the action variable and give it > instructions: > > # get the action > my $ACTION = $Q->param('action') || ""; > if ($ACTION eq "check_password") is

RE: Problem in require function with strict

2001-10-24 Thread Bob Showalter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 24, 2001 4:56 AM > To: [EMAIL PROTECTED] > Subject: Problem in require function with strict > > > Here the situation: > > I am doing a perl program to do some exams and quiz to the > em

Re: problem

2001-10-05 Thread Shannon Murdoch
perl.beginners.cgi > Date: Sun, 3 Jun 2001 00:59:20 -0300 (ADT) > To: Derek Duhon <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: problem > > You should escape all of the quotes that you want printed. > > print "Content-type: > text/html\n\nEn

RE: problem using script as ssi

2001-09-13 Thread Bob Showalter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 13, 2001 11:23 AM > To: CGI Beginners > Subject: problem using script as ssi > > > i have the following script: > > #!/usr/bin/perl -w > > use strict; > > my $file = /path/to/pancho-u

Re: Problem executing script in cgi-bin dir

2001-08-25 Thread Curtis Poe
--- Craig Monroe <[EMAIL PROTECTED]> wrote: > Folsk, > Forgive me. I am new to the list and cgi's in general. > I decided that I wanted to test my scripts locally, > before I implement them and/or debug them on the remote server. > So, I build a unix box for my house. My problem is that when > I

Re: PROBLEM WITH AUTHENTICATING USERS

2001-08-01 Thread fliptop
[reply posted to list] Daniel Falkenberg wrote: > > Sorry mate. I run an apache webserver on a Linux 7.1 server. > > Does this make any real difference though? if you run apache, consider adding mod_perl. then consider using authentication and authorization to solve your problem. with about

Re: Problem with my code

2001-06-27 Thread David Labatte
First you should always use strict. It'll help catch things like your misspeling of jonh. The request you are sending is for a POST, which means that the form data has to be passed in the body of the request, which you forgot to do. So just add: $req->content($john); Correct the spelling mista

RE: problem

2001-06-04 Thread Moon, John
St. Georgetown, TX 78626 email: [EMAIL PROTECTED] -Original Message- From: Bill Wood [mailto:[EMAIL PROTECTED]] Sent: June 04, 2001 19:19 To: Derek Duhon; [EMAIL PROTECTED] Subject: Re: problem Derek, I think your best solution is to use print qq(.); instead of print "

Re: problem

2001-06-04 Thread Bill Wood
Derek, I think your best solution is to use print qq(.); instead of print "."; print (Content-type: text/html\n\nEndless!$currentPrevious Page | Next Page); >- Original Message - >From: Derek Duhon <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Sunday, June 03, 2001 11:2

Re: problem

2001-06-04 Thread Ãèªá¤ô¤ë
I think you may try to use : print "Content-type: text/html\n\n"; print "..."; print "other statements"; - Original Message - From: Derek Duhon <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 03, 2001 11:29 AM Subject: problem I have a print statement that pr

Re: problem

2001-06-04 Thread Ãèªá¤ô¤ë
ED]> To: Derek Duhon <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, June 04, 2001 2:23 PM Subject: Re: problem > > - Original Message - > From: "Derek Duhon" <[EMAIL PROTECTED]> > To: "Ãèªá¤ô¤ë" <[EMAIL PROTECTED]> &g

Re: problem

2001-06-03 Thread Derek Duhon
- Original Message - From: "Derek Duhon" <[EMAIL PROTECTED]> To: "Ãèªá¤ô¤ë" <[EMAIL PROTECTED]> Sent: Sunday, June 03, 2001 11:22 PM Subject: Re: problem > An update on my little problem > I took the advice many of you gave me, and escaped out

Re: problem

2001-06-03 Thread Abdulaziz Ghuloum
The query string holds the contents of all variables passed to the script, not a single variable. It's a string. In the lines: $next = ++$current; $prev = --$current; what you're doing really is increment the value of $current and assign the new value to $next. Same thing for $prev which equ

Re: problem

2001-06-02 Thread Johnathan Thibodeau
You should escape all of the quotes that you want printed. print "Content-type: text/html\n\nEndless!$currentPrevious Page | Next Page"; Johnathan Thibodeau Pound bang user bin perl fork while true On Sat, 2 Jun 2001, Derek Duhon wrote: > I have a print statement that prints out an html pag