Re: help with open function

2001-12-11 Thread Carl Franks
Also note that the file path is relative to the script that is being run, not where your perl executable is. e.g. if perl is at e:\perl\bin\perl.exe and your script is at e:\scripts\myScript.cgi and the file is e:\workflow.txt then the path needs to read open("Workflow", "..\workflow.txt")

Re: Hash of Hashes to set up form

2001-12-11 Thread Marcus Willemsen
>Curtis, Thanks a lot for your help, it works perfectly and it isn't harder to maintain than the solutions I have tried out so far. Marcus >= >Senior Programmer >Onsite! Technology (http://www.onsitetech.com/) >"Ovid" on http://www.perlmonks.org/ > >_

Re: accessing ASP functionality through Perl/CGI

2001-12-11 Thread MARCOS LABORDE
#!/usr/bin/perl #I once had the same problem, an NT server running a webpage that made a POST request to an app passing values USER,FRM,MSG and SEND to it. #here's the code. use strict; use LWP::Simple; use URI::URL; my $content; my $url=url('http://your_NT_webserver_address/scripts/webgate.exe

Re: script doesn

2001-12-11 Thread Mark Bergeron
Have you set up your cert on the server? -Original Message- From: "Alex Chau"<[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Mon Dec 10 20:21:24 PST 2001 Subject: script doesn't work under https but works under http??? >hi everybody, > >I have posted a script to my server, and it works p

Array Help Please:)

2001-12-11 Thread Andre` Niel Cameron
Hi, I have a prob:) I need to search threw an array and remove an item based on its name. I was thinking about maybie a for each loop but I am not sure how to go about it. Heres what I need to do: say $object= sword; I have an array @AllObjects('beer', 'nuts', 'sword', 'and more stuff') Now s

Re: Array Help Please:)

2001-12-11 Thread Jan-Willem Haaring
Hi, This is a possible solution: $object = "sword"; foreach(@AllObjects) { if (/$object/) { next; }; push(@temp,$_); } @AllObjects = @temp; - JW On Tue, 11 Dec 2001, Andre` Niel Cameron wrote: > Hi, > > I have a prob:) I need to search threw an array and remove an item based on > its n

RE: Array Help Please:)

2001-12-11 Thread Bob Showalter
> -Original Message- > From: Andre` Niel Cameron [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 11, 2001 9:18 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Array Help Please:) > > > Hi, > > I have a prob:) I need to search threw an array and remove > an item ba

RE: Array Help Please:)

2001-12-11 Thread Bob Showalter
> -Original Message- > From: Bob Showalter [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 11, 2001 9:40 AM > To: 'Andre` Niel Cameron' > Cc: [EMAIL PROTECTED] > Subject: RE: Array Help Please:) > > ... > To remove all occurences of 'sword', you can use: > >$a[$_] eq 'sword' &&

help with outputting information

2001-12-11 Thread Lance Prais
I am opening a file and just want to check to make sure that the file is being read correctly therefore I am using the following piece of code but getting an error message but according to what I have read it is formatted correctly. 1. #/usr/bin/perl 2. #open a file with the filehandle 3. 4. 5.

RE: help with outputting information

2001-12-11 Thread Bob Showalter
> -Original Message- > From: Lance Prais [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 11, 2001 12:55 PM > To: [EMAIL PROTECTED] > Subject: help with outputting information > > > > I am opening a file and just want to check to make sure that > the file is > being read correctly

src with Perl

2001-12-11 Thread Lupo
(Sorry for my English...) Can I request an image-path with Perl? ...

Re: src with Perl

2001-12-11 Thread Curtis Poe
--- Lupo <[EMAIL PROTECTED]> wrote: > (Sorry for my English...) > > Can I request an image-path with Perl? > > ... Yes. There are two ways to deal with this. One is to have your perl script redirect the browser to the location of the image: #!/usr/bin/perl -wT print "Location:

cgi call cgi program or URL

2001-12-11 Thread Tat Nam
Hi, Does anybody tell how to call another CGI program within a CGI script? Is it possible to include a hyper link within a CGI script? How? Tat Nam

RE: cgi call cgi program or URL

2001-12-11 Thread Herbold, John W.
Unless I am tottaly missing your question... print "Click here "; should do it, then inside of newprogram.pl you can read in the var1, and var2. You could also use a form if you wanted to pass dynamic parameters. John Herbold -Original Message- From: Tat Nam [mailto:[EMAIL PROTECTED]]

RE: Dynamic html/frames frm PERL not working

2001-12-11 Thread David Gilden
Duh, I found the problem, Perl comment was in side of the 'here' doc script works fine now, Dave # HTML Page out print header; print Frame Setter for \u$pageName old code with mistake print header; print

What do you think is better

2001-12-11 Thread Lance Prais
I have a question and I was wondering if anyone had an opinion on it. I am using a perl script to parse through a log file and if there is an error found I need to send and email to someone.. I was thinking about calling an ASP page and passing, the relevant information and when this page is c

RE: What do you think is better

2001-12-11 Thread Herbold, John W.
Here is one that I wrote to parse a WebServer log file, and look for what ever the user typed in. It will then display the records that matched. It would be easy to change and mail out the results using sendmail... Let me know if you have any questions John #! perl -w use CGI; my $query

Re: src with Perl

2001-12-11 Thread Mark Bergeron
Great for counter scripts. -Original Message- From: "Lupo"<[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Tue Dec 11 09:22:29 PST 2001 Subject: src with Perl >(Sorry for my English...) > >Can I request an image-path with Perl? > >... > >

Re: cgi & form again

2001-12-11 Thread zentara
On Tue, 11 Dec 2001 15:17:01 +0800, [EMAIL PROTECTED] (Tat Nam) wrote: >Hi, > The following scripts processes the form and write somthings out and then >allow the user to input his/her e-mail address. After input of the e-mail >address, the script write it into a flat file. However, the scrip

Re: Perl modules on web host server

2001-12-11 Thread Jack Daly
On Sat, 8 Dec 2001, Hoenie Luk wrote: > Hi, I'm new to cgi-programming with Perl and I've been looking for answers > for the following questions: > > 1. How do you find out if the web host supports certain Perl modules? > > 2. If the web host does not have certain modules installed and I nee