Need help parsing QUERY_STRING_UNESCAPED

2006-05-22 Thread Dennis G. Wicks
Greetings; I have discovered that under some conditions QUERY_STRING is set and under other conditions QUERY_STRING_UNESCAPED is set. I can detect these conditions but I can't find out how to get the contents of QUERY_STRING_UNESCAPED transformed to the form it would be in QUERY_STRING in a

Re: Need help parsing QUERY_STRING_UNESCAPED

2006-05-22 Thread Sean Davis
Dennis G. Wicks wrote: Greetings; I have discovered that under some conditions QUERY_STRING is set and under other conditions QUERY_STRING_UNESCAPED is set. I can detect these conditions but I can't find out how to get the contents of QUERY_STRING_UNESCAPED transformed to the form it would

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Jeff Pang
Looking for example Perl scripts to be used in Perl Training. I am going to do a Perl training to a group of people. I was wondering from where I can get some sample Perl scripts to be used to demonstrate the basic usage of Perl. Thanks. I think both Learning Perl and Perl Cook Book are right

Re: Converting a string to a filehandle

2006-05-22 Thread Xavier Noria
On May 22, 2006, at 4:44, Wijaya Edward wrote: Is there a way to do it? Module for it? Suppose I have this large string. my $string = 'foo bar qux woo etc etc'; I would like to convert that string as if it is stored inside a file, and bypassing the file

RE: Add values into Tunnel stream

2006-05-22 Thread Thomas Bätzler
luke devon [EMAIL PROTECTED] asked: This is really about make a tunnel with another server. When i googled i found a sample perl script that function very nicely. http://migo.sixbit.org/pinkhas/nettunnel it works actually. basically , i tested that with a WEB Proxy . it proxied and i

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Chandru
please send it -Chandru. Jeff Pang wrote: Looking for example Perl scripts to be used in Perl Training. I am going to do a Perl training to a group of people. I was wondering from where I can get some sample Perl scripts to be used to demonstrate the basic usage of Perl. Thanks. I

Howto check a parameter size in CGI.pm

2006-05-22 Thread Wijaya Edward
Hi, Is there a way to determine the size of a parameter of a textarea or filefield in CGI.pm? For example, given this form. __BEGIN__ use CGI qw/:standard/; # snip textarea( -name= 'some_name', -rows= 10, -columns

Re: Stealing vs buying Was: Print

2006-05-22 Thread Bjørge Solli
On Friday 19 May 2006 23:30, Rance Hall wrote: Kevin Viel wrote: Bjørge Solli wrote: HOY! People spend years writing those books - buy it! Seconded. Under US law, you may copy one article or one *chapter* under certain circumstances. As a hint, I got several new O'Reilly texts in

RE: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Ryan Frantz
-Original Message- From: Chandru [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 2:23 AM To: Jeff Pang Cc: beginners@perl.org Subject: Re: Looking for example Perl scripts to be used in Perl Training. please send it -Chandru. Jeff Pang wrote: Looking for example

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Rob Coops
Ryan I guess there is a diffrence between knowing the internal workings of perl and all the intresting tricks and things you can do on the very advanced level and a good script to show the basics. The problem is simple is often more difficult then it seems. And I do think as stated before that

RE: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Ryan Frantz
-Original Message- From: Rob Coops [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 9:17 AM To: Ryan Frantz Cc: beginners@perl.org Subject: Re: Looking for example Perl scripts to be used in Perl Training. Ryan I guess there is a diffrence between knowing the internal workings of

Re: Howto check a parameter size in CGI.pm

2006-05-22 Thread JupiterHost.Net
Wijaya Edward wrote: Hi, Is there a way to determine the size of a parameter of a textarea or filefield in CGI.pm? For example, given this form. __BEGIN__ use CGI qw/:standard/; # snip textarea( -name= 'some_name', -rows= 10,

Re: Event Timer in Perl

2006-05-22 Thread Stephen Kratzer
On Saturday 20 May 2006 23:13, SkyBlueshoes wrote: I have a script that uses an infinite loop, I'm wanting to be able to set a timer that when expired will run a subroutine, something sort of like Poe's callback timer feature. How would I go about doing this? I need to be able to set multiple

RE: Howto check a parameter size in CGI.pm

2006-05-22 Thread Charles K. Clarkson
Wijaya Edward wrote: : Is there a way to determine the size of a parameter of a : textarea or filefield in CGI.pm? You can determine the length (using the length() function) of a field, but not the size of the control on the form. That information is not sent via the Common Gateway

RE: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Timothy Johnson
-Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Sunday, May 21, 2006 11:06 PM To: beginners@perl.org Subject: Re: Looking for example Perl scripts to be used in Perl Training. snip I think both Learning Perl and Perl Cook Book are right for your purpose. I got

export script problem

2006-05-22 Thread Graeme McLaren
Hi all, I need to export data from one database table to another. I also need to cleanse the data before inserting it to the other DB. There is only one unique column login and that is an string such as login1. The rest are contact details, personal name / address and business name /

[OT]Re: export script problem

2006-05-22 Thread Jeremy Vinding
Graeme McLaren wrote: Public Sub House() On Error Resume drink If Pint.empty = True Then Pint.refill Else Pint.drink End if stomach.add Pint MsgBox I've had stomach.count Pints MsgBox VERY DRUNK End Sub sub house { if

Counting arrays

2006-05-22 Thread Michael Gargiullo
It's been a while since I've used Perl and I need some help with a multidimensional array. I have a file that I need to compile some stats on. I need to keep track of 'actions' and 'rules'. Yes, stats from a firewall. Both 'actions' and 'rules' need to be dynamic so if a rule is added, it's

Re: Counting arrays

2006-05-22 Thread Dave Gray
On 5/22/06, Michael Gargiullo [EMAIL PROTECTED] wrote: It's been a while since I've used Perl and I need some help with a multidimensional array. I have a file that I need to compile some stats on. I need to keep track of 'actions' and 'rules'. Yes, stats from a firewall. Both 'actions' and

Re: Locked database SQLite

2006-05-22 Thread SkyBlueshoes
Can anybody help me with this? I tried the solution on the link below, adding in $sth-finish(); and although the error message is surpressed now, the record never gets inserted... Sky Blueshoes SkyBlueshoes wrote: I'm getting an error using SQLite: DBD::SQLite::sth execute failed: database

Unknown Date Standards and ISO 8601

2006-05-22 Thread Kenneth B. Hill
I apologize if this posting is not specific to Perl usage, but I'm doing some research on standards for handling unknown date values (e.g, when a complete date is not known). I work in an industry niche (cancer registry and public health data collection) that does not follow ISO 8601 for

No Such File Error on Simple Scrape

2006-05-22 Thread kc68
When I execute the script below, I get the error message No such file or directory at simple2.pl line 21. Line 21 is the Open OUT statement. This script parallels a tutorial script that does work and I don't see the error. It does print to the screen if I comment out the Open OUT line.

RE: No Such File Error on Simple Scrape

2006-05-22 Thread Timothy Johnson
One simple thing you might want to start doing is including the filename in your error message. Quite often this message means that either you're not in the starting directory you think you're in or part of your filename is being interpreted as something other than what you intended.

Re: No Such File Error on Simple Scrape

2006-05-22 Thread Jaime Murillo
On Monday 22 May 2006 14:49, [EMAIL PROTECTED] wrote: When I execute the script below, I get the error message No such file or directory at simple2.pl line 21. Line 21 is the Open OUT statement. This script parallels a tutorial script that does work and I don't see the error. It does print

Re: No Such File Error on Simple Scrape

2006-05-22 Thread kc68
On Mon, 22 May 2006 18:00:25 -0400, Jaime Murillo [EMAIL PROTECTED] wrote: On Monday 22 May 2006 14:49, [EMAIL PROTECTED] wrote: When I execute the script below, I get the error message No such file or directory at simple2.pl line 21. Line 21 is the Open OUT statement. This script

Re: Counting arrays

2006-05-22 Thread JupiterHost.Net
Michael Gargiullo wrote: It's been a while since I've used Perl and I need some help with a multidimensional array. AKA a HASH :) You want a hash not an array :) I have a file that I need to compile some stats on. I need to keep track of 'actions' and 'rules'. Yes, stats from a

Re: No Such File Error on Simple Scrape

2006-05-22 Thread John W. Krahn
[EMAIL PROTECTED] wrote: When I execute the script below, I get the error message No such file or directory at simple2.pl line 21. Line 21 is the Open OUT statement. This script parallels a tutorial script that does work and I don't see the error. It does print to the screen if I comment

Re: No Such File Error on Simple Scrape

2006-05-22 Thread Dr.Ruud
[EMAIL PROTECTED] schreef: my $output_dir = c:/training/bc; [...] open OUT, output_dir/simple2.html or die Can't open file: $!; ^ Maybe you meant $output_dir? ^ -- Affijn, Ruud Gewoon is een tijger. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [OT]Re: export script problem

2006-05-22 Thread Chad Perrin
On Mon, May 22, 2006 at 01:50:04PM -0600, Jeremy Vinding wrote: Graeme McLaren wrote: Public Sub House() On Error Resume drink If Pint.empty = True Then Pint.refill Else Pint.drink End if stomach.add Pint MsgBox I've had

file list

2006-05-22 Thread SkyBlueshoes
Which module would be best to build an array of all files within a directory and all subdirectories matching the extension? I will need the full path to those files included with the filename in the array... SkyBlueshoes -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: file list

2006-05-22 Thread Timothy Johnson
Check out the File::Find module. It should come standard with your distribution. You may have to re-read the docs a couple of times before it makes sense, but it works well. Post here if you have any problems. -Original Message- From: SkyBlueshoes [mailto:[EMAIL PROTECTED] Sent:

Re: file list

2006-05-22 Thread Ricky Zhou
On 5/22/06, SkyBlueshoes [EMAIL PROTECTED] wrote: Which module would be best to build an array of all files within a directory and all subdirectories matching the extension? I will need the full path to those files included with the filename in the array... I'm not sure if there's a more

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Japerlh
Thanks a lot for all you guys. On 5/23/06, Timothy Johnson [EMAIL PROTECTED] wrote: -Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Sunday, May 21, 2006 11:06 PM To: beginners@perl.org Subject: Re: Looking for example Perl scripts to be used in Perl Training. snip

Socket Problems

2006-05-22 Thread Practical Perl
Hello,lists, We write a simple socket script using IO::Socket module.When this script connect to peer server (both server and my scripts are in the same LAN),it always dropped and print these errors: IO::Socket::INET: connect: Connection refused IO::Socket::INET: connect: Connection timed out

Create Directories

2006-05-22 Thread SkyBlueshoes
Another stupid question, search.cpan.org doesn't like me, lol: Which module is best for creating a directory and all directories in between. Ex: I want to create the directory : \dir1\dir2\dir3\targetdirectory but none of the preceding numbered directories exist... Sky Blueshoes -- To

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Chandru
Hi I have looked some example scripts in Perl. I would like to have some pdfs or chms to guide myself.Can any one has such books. - Chandru Ryan Frantz wrote: -Original Message- From: Chandru [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 2:23 AM To: Jeff Pang Cc:

RE: Create Directories

2006-05-22 Thread Toby Stuart
-Original Message- From: SkyBlueshoes [mailto:[EMAIL PROTECTED] Sent: Tuesday, 23 May 2006 12:38 PM To: beginners@perl.org Subject: Create Directories Another stupid question, search.cpan.org doesn't like me, lol: Which module is best for creating a directory and all

RE: Counting arrays

2006-05-22 Thread Michael Gargiullo
-Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 6:12 PM To: beginners@perl.org Subject: Re: Counting arrays Michael Gargiullo wrote: It's been a while since I've used Perl and I need some help with a multidimensional array. AKA a HASH

Re: Create Directories

2006-05-22 Thread Anthony Ettinger
File::Spec if you are working cross platform. then mkdir $path On 5/22/06, Toby Stuart [EMAIL PROTECTED] wrote: -Original Message- From: SkyBlueshoes [mailto:[EMAIL PROTECTED] Sent: Tuesday, 23 May 2006 12:38 PM To: beginners@perl.org Subject: Create Directories Another

Re: Counting arrays

2006-05-22 Thread JupiterHost.Net
for my $action (keys %actionrule) { print Action is: $action\n; for my $rule (keys %{ $actionrule{$action} }) { print \tRule is: $rule\n; print \t\tand its count is: $actionrule{$action}{$rule}\n; } } THANK YOU!! This works beautifully! I was pulling my hair