Re: A security problem

2002-11-01 Thread Geraint Jones
I can't say for sure, but check your Internet Explorer settings. You should be able to stop the browser caching documents from certain domains, and also you might have that automatic form completion option activated. I can't give you more precise info because I'm using Linux. And if that

Re: perl cgi security

2002-11-01 Thread zentara
On Thu, 31 Oct 2002 15:56:59 -0500, [EMAIL PROTECTED] (Todd W) wrote: Jim Lundeen [EMAIL PROTECTED] wrote in message news:3DBDA799.307DC69A;jimmyjames.net... nothing that will work on Linux box? perlcc works... see below. Yeah, I have to say that the perlcc which comes with perl5.8.0 is

auto execute cgi

2002-11-01 Thread Admin-Stress
Hi, Maybe this is not so related with perl it self, but still ... Is there any way to 'auto execute cgi' ? I meant, I have to trigger something (like updating database via perl) just after user viewed the html. Thanks, kapot __ Do you Yahoo!?

Re: auto execute cgi

2002-11-01 Thread fliptop
On Fri, 1 Nov 2002 at 07:04, Admin-Stress opined: A:Maybe this is not so related with perl it self, but still ... A: A:Is there any way to 'auto execute cgi' ? I meant, I have to trigger A:something (like updating database via perl) just after user viewed the A:html. perhaps a server side

two cookies from one domain

2002-11-01 Thread aman cgiperl
Hi How do I set two cookies, from two different scripts, same domain? I tried with different names for cookies as follows and I lose'em Script1.cgi has the following code: my $ct = rnd_num;# random number generator use CGI::Cookie;

mysql

2002-11-01 Thread Admin-Stress
Sorry, another out of topic. Is it safe to use mySQL in cgi? I meant, if my update.pl perl cgi will do this : connect to mysql database insert into table values (values from FORM) ... other tasks ... close What happen if there are, let say 100 people accessing that perl cgi? I meant

Kmail, pipe, perl script, result?

2002-11-01 Thread K Pfeiffer
Hi, With KMail one can use a filter to pipe a message somewhere. I have a perl script that will parse a filtered message for a date and then (when run at the commandline) return a user-readable result. When I do this in KMail with a filter I never see the returned result. Is there a way (in

Reading config files

2002-11-01 Thread Brian Ling
Hi All I have a main Perl program that needs to read in a config file that just sets some variable values, what is the best way to do this. The config file can be in any format I want such as: #!/usr/bin/perl my $var = 3; my $var1 = 4 ; my $var2 = 234; etc So how could I

RE: Reading config files

2002-11-01 Thread vinai AR
Hi, the one way to use the config file is 1. Don't use my to declare variables inside the config file. 2. In the perl program just require the config file and the variables and its values will be a available in the perl program. 3. use require filename; statement to use

Re: Reading config files

2002-11-01 Thread Victor Tsang
build a pm to store them. Tor. Brian Ling wrote: Hi All I have a main Perl program that needs to read in a config file that just sets some variable values, what is the best way to do this. The config file can be in any format I want such as: #!/usr/bin/perl my $var = 3; my $var1 =

I'm learning the basics of functions. Help!

2002-11-01 Thread Gajo Csaba
Hi, I'm trying to write a simple Hanoi tower program. Here is the procedure I've wrote (with line numbers): # hanoj (src,hlp,tgt,num) # src,tgt,hlp,n-1 src,hlp,tgt,1 hlp,src,tgt,n-1 3: sub hanoj 4: { 5: if ($_[3] = 1) 6: { 7:print From $_[0] we put on $_[2] with the help of $_ [1];

RE: Print in colors.

2002-11-01 Thread HALUK AVCIOGLU
Hi; Let we say it will run on unix terminal window... Can u help now ? :) -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 6:01 PM To: [EMAIL PROTECTED] Subject: Re: Print in colors. From: Janfek Esquivel [EMAIL

create a readable webpage

2002-11-01 Thread Adriano Allora
Hi to all, I have this problem: I want to put a dot pl file (my perl script) in a url and I want it to write the page and the browser to read it. For instance, this one could be my perl script: #!/usr/bin/perl print HTTP/1.0 200 OK\n; print Content-Type: text/html\n\n; print 'HTMLHEAD'; print

Monthly posting statistics - October 2002

2002-11-01 Thread Felix Geerinckx
Monthly posting statistics for perl.beginners - October 2002. From 2002-10-01 to 2002-10-31 there were 1675 articles posted (81799 lines) by 326 authors, giving an average 5.14 articles per author, and an average article length of 49 lpa. The average number of articles per day was 54. There

Problem with glob

2002-11-01 Thread sergiy
Excuse my weak english, PLS! Code below works fine. But, when filename include symbol $ begins troubles. Perl extract it to variables. What's wrong? #!/usr/bin/perl -w use strict; my @files; @files = glob('*.f*'); print @files; Thanx in Advance, Sergiy -- To unsubscribe, e-mail: [EMAIL

Re: Fork() Question

2002-11-01 Thread Jenda Krynicky
From: Jessee Parker [EMAIL PROTECTED] I know when you fork() a process the child is a duplicate of the parent, but does the forked copy have the same priority and time slice assigned to it or is it brand new? Jessee This is operating system dependant! Jenda = [EMAIL PROTECTED] ===

Re: I'm learning the basics of functions. Help!

2002-11-01 Thread Jenda Krynicky
From: Gajo Csaba [EMAIL PROTECTED] I'm trying to write a simple Hanoi tower program. Here is the procedure I've wrote (with line numbers): # hanoj (src,hlp,tgt,num) # src,tgt,hlp,n-1 src,hlp,tgt,1 hlp,src,tgt,n-1 3: sub hanoj 4: { 5: if ($_[3] = 1) 6: { 7:print From $_[0]

RE: Fork() Question

2002-11-01 Thread Kipp, James
yes, it inherits just about everything: from man page: The fork() and fork1() functions create a new process. The new process (child process) is an exact copy of the calling process (parent process). The child process inherits the following attributes from the parent process:

RE: Print in colors.

2002-11-01 Thread Jenda Krynicky
From: HALUK AVCIOGLU [EMAIL PROTECTED] Hi; Let we say it will run on unix terminal window... Can u help now ? :) http://search.cpan.org/author/WPS/Curses-1.06/Curses.pm Jenda P.S.: Please do NOT top post! = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women

Re: Problem with glob

2002-11-01 Thread Jenda Krynicky
From: sergiy [EMAIL PROTECTED] Excuse my weak english, PLS! Code below works fine. But, when filename include symbol $ begins troubles. Perl extract it to variables. What's wrong? #!/usr/bin/perl -w use strict; my @files; @files = glob('*.f*'); print @files; This code doesn't do

Re: PRINT FORMAT(Color,Font Size) on Terminal Window?

2002-11-01 Thread zentara
On Thu, 31 Oct 2002 14:08:56 +0200, [EMAIL PROTECTED] (Haluk Avcioglu) wrote: Hi; When you execute perl script on terminal window (on Linux Redhat), can we print texts on different colors and be able to set font and its size? Thanks. Best regards... You can print colors, but you can't change the

Re: create a readable webpage

2002-11-01 Thread zentara
On Fri, 1 Nov 2002 12:45:43 +0100, [EMAIL PROTECTED] (Adriano Allora) wrote: Hi to all, I have this problem: I want to put a dot pl file (my perl script) in a url and I want it to write the page and the browser to read it. For instance, this one could be my perl script: #!/usr/bin/perl print

Win32 - Problem updating the registry

2002-11-01 Thread gkhgkh
I am trying to update the Registry using a script from David Roth's book Win32 Perl Programming. The script appears to run, no errors, however the Key does not get added to the registry. Any help is appreciated. Thanks #!/perl/bin/perl -w use strict; use Win32::Registry; my $Path =

RE: Win32 - Problem updating the registry

2002-11-01 Thread Kipp, James
maybe try putting some die or warn statements to hopefully give you a clue as to what went wrong. or check to see it Win32::Registry has any error status functions Original Message- From: [EMAIL PROTECTED] [mailto:gkhgkh;attbi.com] Sent: Friday, November 01, 2002 12:22 PM To: [EMAIL

RE: Looking for module

2002-11-01 Thread Meidling, Keith, CTR, OSD-C3I
Will Win32 Modules not work on a Linux box? -Original Message- From: Kipp, James [mailto:James.Kipp;mbna.com] Sent: Thursday, October 31, 2002 3:15 PM To: 'Chris Rogers'; '[EMAIL PROTECTED]' Subject: RE: Looking for module no, sorry did not know you were working on a linux box

RE: Win32 - Problem updating the registry

2002-11-01 Thread Timothy Johnson
Also: use strict; use warnings; and don't forget to put in some else statements to go with your ifs. -Original Message- From: Kipp, James [mailto:James.Kipp;mbna.com] Sent: Friday, November 01, 2002 9:31 AM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: Win32 - Problem

problem installing DBIx module

2002-11-01 Thread Johnson, Shaunn
Howdy: I'm trying to install the DBIx-Connect-1.7 on RedHat Linux 7.2. My goal is to connect to DB2 on MVS / 390 (which is running DB2 6.1.x). When I try to run the 'make test', I get the following error: [snip error] PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib

Run a perl script within perl....

2002-11-01 Thread Dr. Poo
My name is Chris, Hi! I'm still trying to get Net::FTP to work... I posted a question about a few days ago, and i've got no response... My original question is at the very bottom of this email... But my new question is here. I'm running Redhat 7, perl 5.6, Net::FTP 2.65. When i try to

Of LIB=, Makemaker, and alternate locations for libraries of perl extensions and apps

2002-11-01 Thread George Szynal
For those who want/need to install a Perl app or extension without perturbing the default perl library tree. Possible reasons: 1. Disambiguating the existing libs from your libs (for testing perhaps) 2. Not wanting to or not having rights to login as a supervisor (or as a user with admin

Re: Of LIB=, Makemaker, and alternate locations for libraries of perl extensions and apps

2002-11-01 Thread sean finnigan
Thank you. George Szynal [EMAIL PROTECTED] wrote:For those who want/need to install a Perl app or extension without perturbing the default perl library tree. Possible reasons: 1. Disambiguating the existing libs from your libs (for testing perhaps) 2. Not wanting to or not having rights to

Re: skip the first line

2002-11-01 Thread John W. Krahn
Charles Belcher wrote: I have a file that looks like 0 232,32387,2323 I am only interested in the last set of digits on the second line. My plan was to split on coma and take the 3 element of the array. I am having problems skipping the fist line. Any assistance would be appreciated.

RE: skip the first line

2002-11-01 Thread Timothy Johnson
Maybe I'm reading this wrong, but if you're only looking for the third field on the second line, why not just do this: open(INFILE,myfile.txt) || die Could not open myfile.txt! $!; INFILE; #skip the first line $_ = INFILE; my $thirdField = (split /,/,$_)[2]; #Get the third elementof

Any ideas?

2002-11-01 Thread Dr. Poo
How might i go about pointing STDOUT to store each line in an array? Could i 'tie' standard out to an array? (i don't know how to use tie) Thanks -Chris -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: skip the first line

2002-11-01 Thread Robert Citek
Hello Charles, At 12:22 PM 10/31/2002 -0500, [EMAIL PROTECTED] wrote: I have a file that looks like 0 232,32387,2323 I am only interested in the last set of digits on the second line. My plan was to split on coma and take the 3 element of the array. I am having problems skipping the fist

RE: Any ideas?

2002-11-01 Thread Timothy Johnson
First of all, I would recommend getting using a more specific subject line. Secondly, STDOUT is a file handle, not a variable for storage. What specifically are you trying to do? -Original Message- From: Dr. Poo [mailto:drpoo;houston.rr.com] Sent: Friday, November 01, 2002 12:49 PM To:

Managing Terminals

2002-11-01 Thread Rasoul Hajikhani
Hello folks, I have written a little program which does a few sql calls. And while those results are being processed I would like to show a counter displaying the amount of time passing while the user awaits for the result. However, I don't want it to look like this: 1 2 3 4 .. .. .. But rather, I

Re: Managing Terminals

2002-11-01 Thread Paul Johnson
On Fri, Nov 01, 2002 at 01:11:38PM -0800, Rasoul Hajikhani wrote: But rather, I want to display 1, sleep(1), then display 2 in place of 1. All on the same line. Probably the easiest way is to use \r instead of \n. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe,

Re: Any ideas [on how to redirect STDOUT to an array]?

2002-11-01 Thread Paul Johnson
On Fri, Nov 01, 2002 at 06:04:39PM -0600, Dr. Poo wrote: What i am trying to do is set up a very rudimentary logging system. I want to log everything that is directed to STDOUT. And the way i'd like to try to do this is have an array declared that will read STDOUT and store the contents to

Re: help make me more perlish

2002-11-01 Thread John W. Krahn
Shawn Milochik wrote: I have written a script which is very useful for me day-to-day. It checks table structure in HTML files. The script is working, but I would appreciate any comments, especially as to how this can be better written. Ok, you asked for it. :-) If you want to check HTML

Setting the path in win2k

2002-11-01 Thread mark
Hi Everybody, I crashed my setup last week and lost my perl installation in win2k. I am trying to reset my path for perl and going through enviroment variable I see a path for for Perl under the Path variable. Windows still doesn't recognise that Perl is loaded in the system. Does Perl need a

RE: Setting the path in win2k

2002-11-01 Thread Beau E. Cox
Hi - No, Perl does not need a 'secret' path; It should follow your Control Panel - System - Advanced - Environment Variables - System Variables - Path. To debug: 1) from a command prompt window: set path 2) is you Perl bin path there? (usually c:\perl\bin) 3) if not, go set up the path in