Re: CGI parameters

2005-10-25 Thread Dermot Paikkos
On 24 Oct 2005 at 11:48, Ovid wrote: I am trying to access the parameter list from a form. I keep getting a Not an ARRAY reference at (eval...). The error seems to refer to my @names = $q-param; I suspect you're off by a couple of lines: my @names = $q-param; my $params =

changing file name in Save as option for html files

2005-10-25 Thread Aravind J
Hi , I am trying to dynamically change file name of an html that is generated through a cgi script, I know that for it is easy to do this for other type of files such as pdf or csv which we download and save , we can use Content-Disposition: attachment; filename = abc.pdf to change the file name.

Re: CGI parameters

2005-10-25 Thread Ovid
--- Dermot Paikkos [EMAIL PROTECTED] wrote: I still get the error if I remove those lines: 1 #!/usr/bin/perl -w 2 3 use strict; 4 5 use CGI qw\standard cgi-lib\; 6 use CGI::Carp qw(fatalsToBrowser); 7 8 $CGI::POST_MAX = 1024 * 1000; # Set

RE: extract zip file

2005-10-25 Thread Pant, Hridyesh
Thanks.. Now I want to change the string in file. orgtext=C:\\test; newtext=/bin/old; I tired $intext =~ s/$orgtext/$newtext/ms; but this is not working.. Any help.. Regards Hridyesh -Original Message- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: 25 October 2005 10:21 To: Pant,

Re: Create a file

2005-10-25 Thread John W. Krahn
M. Lewis wrote: I'm trying to create a file of a certain size. Specifically 15MB for some testing purposes. I want this file to have random characters. I'm sure it would be easier (faster) to use the same character. What I'm finding is my code is terribly slow to create a 15MB file. Is

Re: extract zip file

2005-10-25 Thread John Doe
Pant, Hridyesh am Dienstag, 25. Oktober 2005 08.08: Thanks.. Now I want to change the string in file. orgtext=C:\\test; newtext=/bin/old; I tired $intext =~ s/$orgtext/$newtext/ms; but this is not working.. Wrong modifiers /ms. See perldoc perlre perldoc perlretut joe -- To unsubscribe,

RE: extract zip file

2005-10-25 Thread Pant, Hridyesh
But the same is working if I am using orgtext=Hello; newtext=world; I tired $intext =~ s/$orgtext/$newtext/ms; but this is not working.. The only problem is string like C:\\test. Hridyesh... -Original Message- From: John Doe [mailto:[EMAIL PROTECTED] Sent: 25 October 2005 14:08 To:

how to avoid process die when can't create mysql dbh

2005-10-25 Thread Jeff Pan
hi, Because of network problem,my script can't create Mysql dbh sometime when running,then it died.I have written code like this: my $mysql_dbh=DBI-connect(dbi:mysql:$mysql_db:$mysql_host,$mysql_user,$mysql_passwd, {PrintError = 1,RaiseError = 0}); I want to

Re: extract zip file

2005-10-25 Thread John Doe
Pant, Hridyesh am Dienstag, 25. Oktober 2005 11.04: But the same is working if I am using orgtext=Hello; newtext=world; I tired $intext =~ s/$orgtext/$newtext/ms; but this is not working.. The only problem is string like C:\\test. I was not well prepared with my last answer. First, the

RE: extract zip file

2005-10-25 Thread Pant, Hridyesh
Thanks a lot john... -Original Message- From: John Doe [mailto:[EMAIL PROTECTED] Sent: 25 October 2005 16:20 To: beginners@perl.org Subject: Re: extract zip file Pant, Hridyesh am Dienstag, 25. Oktober 2005 11.04: But the same is working if I am using orgtext=Hello; newtext=world;

RE: CPAN module for file upload/download

2005-10-25 Thread Dhanashri Bhate
Thanks a million Chris! I could use this module very well for the file upload part! Now working on the file download, which is giving me some trouble... I'm trying it on Windows, with Active Perl 5.8.7, and when I run the program to download a file using this, my computer just starts beeping

Enlisting All Possible Ranges of An Array

2005-10-25 Thread Edward Wijaya
Dear Sirs, Given this array: my @array = qw (A B C D E ); I want to enumerate all its possible ranges throughout the elements. Such that it gives the following desired answer, that look like this ( I manually crafted it):. my $ans = [ 'A', 'B',

Re: extract zip file

2005-10-25 Thread John W. Krahn
John Doe wrote: Pant, Hridyesh am Dienstag, 25. Oktober 2005 11.04: But the same is working if I am using orgtext=Hello; newtext=world; I tired $intext =~ s/$orgtext/$newtext/ms; but this is not working.. The only problem is string like C:\\test. I was not well prepared with my last answer.

Re: Enlisting All Possible Ranges of An Array

2005-10-25 Thread Xavier Noria
On Oct 25, 2005, at 16:36, Edward Wijaya wrote: Given this array: my @array = qw (A B C D E ); I want to enumerate all its possible ranges throughout the elements. Math::Combinatorics can help there. -- fxn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Enlisting All Possible Ranges of An Array

2005-10-25 Thread Chris Charley
Dear Sirs, Given this array: my @array = qw (A B C D E ); I want to enumerate all its possible ranges throughout the elements. Such that it gives the following desired answer, that look like this ( I manually crafted it):. my $ans = [ 'A', 'B',

Re: Create a file

2005-10-25 Thread Jay Savage
On 10/25/05, John W. Krahn [EMAIL PROTECTED] wrote: M. Lewis wrote: I'm trying to create a file of a certain size. Specifically 15MB for some testing purposes. I want this file to have random characters. I'm sure it would be easier (faster) to use the same character. What I'm finding is

log filtering

2005-10-25 Thread mynullvoid
FIRST STAGE My idea is to check auth.log file for it changes and create files based on it's source IP, for example, if there are login request from 192.168.0.1, so the system shall filter the log and create db.192.168.0.1; in this new filtered log file, it shall consist of the time and the

RE: log filtering

2005-10-25 Thread Steve Bertrand
My idea is to check auth.log file for it changes and create files based on it's source IP, for example, if there are login request from 192.168.0.1, so the system shall filter the log and create db.192.168.0.1; in this new filtered log file, it shall consist of the time and the

RE: log filtering

2005-10-25 Thread Steve Bertrand
My idea is to check auth.log file for it changes and create files based on it's source IP, for example, if there are login request from 192.168.0.1, so the system shall filter the log and create db.192.168.0.1; in this new filtered log file, it shall consist of the time and the

regular expression match problem

2005-10-25 Thread Pine Yan
This is a segment of code to do string search: my $email = \pineyan; my $name = \\pine; if($email =~ /($name)/) { print Found my name: $name!\n; } and I got the following error when running: Can't find unicode character property definition via main-i or i.pl at unicode/Is/i.pl

Re: regular expression match problem

2005-10-25 Thread Jeff 'japhy' Pinyan
On Oct 25, Pine Yan said: This is a segment of code to do string search: my $email = \pineyan; my $name = \\pine; if($email =~ /($name)/) { print Found my name: $name!\n; } and I got the following error when running: Can't find unicode character property definition via main-i

RE: log filtering

2005-10-25 Thread mynullvoid
Dear Steve Bertrand, At the moment I only have my script in bash, and found that there are many issues with my script. I would appreciate if anyone can write me a script that can accomplish what this. I shall take it from there and enhance to suit my environment. Please assist. I am

RE: log filtering

2005-10-25 Thread Chris Devers
On Tue, 25 Oct 2005, mynullvoid wrote: At the moment I only have my script in bash, and found that there are many issues with my script. I would appreciate if anyone can write me a script that can accomplish what this. Super. How much were you thinking of paying? Are you taking bids? (Hint:

Re: Create a file

2005-10-25 Thread M. Lewis
Jay Savage wrote: On 10/25/05, John W. Krahn [EMAIL PROTECTED] wrote: M. Lewis wrote: I'm trying to create a file of a certain size. Specifically 15MB for some testing purposes. I want this file to have random characters. I'm sure it would be easier (faster) to use the same character. What

Rename a file.

2005-10-25 Thread Pant, Hridyesh
Hi while renaming a file I am getting below error on windows environment.. Couldn't rename to : Permission denied Couldn't rename to : Permission denied Couldn't rename to : Permission denied Can any body suggest me...how to remove this error.. Thanks Hridyesh -- To unsubscribe, e-mail: