Re: trouble with meta http-equiv

2006-12-01 Thread David Bear
Wiggins d'Anconia wrote: David Bear wrote: I'm trying to put a client side redirect with http-equiv refresh. I'm using the syntax: my $req = CGI-new(); print $req-header( text/html ); print $req-start_html( -head=meta({-http-equiv = 'refresh', In the above line the call to meta() is

Re: ways to iterate over params

2006-12-01 Thread David Bear
Bill Jones wrote: On 11/30/06, David Bear [EMAIL PROTECTED] wrote: my $q = CGI-new(); my %params = $q-Vars; foreach $f (keys (%params)) { print $f is $params{$f} ; } use CGI; my $q = CGI-new(); my %params = $q-Vars; foreach my $f (keys (%params)) { print $f is $params{$f}\n;

check for def

2006-12-01 Thread David Bear
I would like to do something like (psuedo coded) my $req = CGI-new(); my %params = $req-Vars; if ndef %params { %params = 'gets a hash time that i build' } The goal of course is to make sure that %params has some hash table available even if the script is not called in a cgi environment. Any

Re: check for def

2006-12-01 Thread Mumia W.
On 12/01/2006 01:24 PM, David Bear wrote: I would like to do something like (psuedo coded) my $req = CGI-new(); my %params = $req-Vars; if ndef %params { %params = 'gets a hash time that i build' } The goal of course is to make sure that %params has some hash table available even if the

Re: check for def

2006-12-01 Thread Bill Jones
On 12/1/06, David Bear [EMAIL PROTECTED] wrote: I would like to do something like (psuedo coded) Whats wrong with what you posted previously? The goal of course is to make sure that %params has some hash table available even if the script is not called in a cgi environment. Any pointers?

Re: check for def

2006-12-01 Thread Bill Jones
[sorry for following up my own post] On 12/1/06, Bill Jones [EMAIL PROTECTED] wrote: Yes, the 'use CGI' stuff will work even on the command-line (ie, when not used in a CGI/HTTP gateway) environment. A specific example - #! /usr/bin/perl -wT use CGI; use strict; use warnings; use

Re: Complex regex help

2006-12-01 Thread D. Bolliger
Omega -1911 am Freitag, 1. Dezember 2006 06:05: Hello all, I am trying to parse calendar events for a rss feed into variables. Can someone help with building the following regex or point me in the direction of some good examples? Thanks in advance. Here is what I have tried: (I don't know

Re: Complex regex help

2006-12-01 Thread Rob Dixon
Omega -1911 wrote: Hello all, I am trying to parse calendar events for a rss feed into variables. Can someone help with building the following regex or point me in the direction of some good examples? Thanks in advance. Here is what I have tried: (I don't know much about complex regex's as

Re: Net::EasyTCP

2006-12-01 Thread Derek B. Smith
--- zentara [EMAIL PROTECTED] wrote: On Thu, 30 Nov 2006 13:34:16 -0800 (PST), [EMAIL PROTECTED] (Derek B. Smith) wrote: Hello... : ) I need to gather a single filename on hundreds of servers ranging in *UX flavors from AIX, HP, Solaris, RH Linux and Tru64 then store them on on HPUX

Can't test without successful make

2006-12-01 Thread Brent Clark
Hello world I have this problem using perl shell to install cpan modules. I keep getting this Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible I have tried removing the .cpan directory, but this has not made

Re: Net::EasyTCP

2006-12-01 Thread Derek B. Smith
--- zentara [EMAIL PROTECTED] wrote: On Thu, 30 Nov 2006 13:34:16 -0800 (PST), [EMAIL PROTECTED] (Derek B. Smith) wrote: Hello... : ) I need to gather a single filename on hundreds of servers ranging in *UX flavors from AIX, HP, Solaris, RH Linux and Tru64 then store them on on HPUX

Re: Can't test without successful make

2006-12-01 Thread Tom Phoenix
On 12/1/06, Brent Clark [EMAIL PROTECTED] wrote: I keep getting this Running make test Can't test without successful make That means that the make stage - which builds your new module - didn't succeed, for some reason. Maybe your system is missing some key component, say. Since the module

Re: Complex regex help

2006-12-01 Thread Omega -1911
Hi Rob Dani, Thanks for your help!!! I will try the suggestion you made Rob and as soon as I finish typing this, I'll try Dani's code. I had someone by the name of Chen Ken contact me off-list and provided me with the following regex that appeared to work. Please let me know what you think:

How can i pull out the first line from every file in a directory

2006-12-01 Thread Dennis Bourn
Im working on a perl script to add the IP addresses from spam to my blocked list. Each quarentined email is kept in one directory, the IP address of the sender is in the first line of the headers. Im using O'Reilly's Learning Perl as a guide and got some parts working. I can list all the files

Re: Net::EasyTCP

2006-12-01 Thread Derek B. Smith
--- zentara [EMAIL PROTECTED] wrote: On Thu, 30 Nov 2006 13:34:16 -0800 (PST), [EMAIL PROTECTED] (Derek B. Smith) wrote: Hello... : ) I need to gather a single filename on hundreds of servers ranging in *UX flavors from AIX, HP, Solaris, RH Linux and Tru64 then store them on on HPUX

Re: How can i pull out the first line from every file in a directory

2006-12-01 Thread Dennis Bourn
Dennis Bourn wrote: Im working on a perl script to add the IP addresses from spam to my blocked list. Each quarentined email is kept in one directory, the IP address of the sender is in the first line of the headers. Im using O'Reilly's Learning Perl as a guide and got some parts working. I

Re: How can i pull out the first line from every file in a directory

2006-12-01 Thread John W. Krahn
Dennis Bourn wrote: Im working on a perl script to add the IP addresses from spam to my blocked list. Each quarentined email is kept in one directory, the IP address of the sender is in the first line of the headers. Im using O'Reilly's Learning Perl as a guide and got some parts working. I

Re: Question regarding use of multiple Perl versions

2006-12-01 Thread Ken Foskey
On Thu, 2006-11-30 at 11:40 -0500, Hotz, Harry wrote: I have a new AIX 5.3 server that comes with a default Perl 5.82. I have a DB2 programmer that has scripts from an old AIX 4.3 server that used Perl 5.005_03. He will have to rewrite his scripts to use the new Perl and asked me to

Re: Can't test without successful make

2006-12-01 Thread Mumia W.
On 12/01/2006 08:13 AM, Brent Clark wrote: Hello world I have this problem using perl shell to install cpan modules. I keep getting this Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible I have tried removing

Re: How can i pull out the first line from every file in a directory

2006-12-01 Thread Mumia W.
On 12/01/2006 02:01 PM, Dennis Bourn wrote: Dennis Bourn wrote: Im working on a perl script to add the IP addresses from spam to my blocked list. Each quarentined email is kept in one directory, the IP address of the sender is in the first line of the headers. Im using O'Reilly's Learning

Re: Complex regex help

2006-12-01 Thread D. Bolliger
Omega -1911 am Freitag, 1. Dezember 2006 19:01: Hi Rob Dani, Hello Omega Thanks for your help!!! I will try the suggestion you made Rob and as soon as I finish typing this, I'll try Dani's code. I had someone contact me off-list and provided me with the following regex that appeared to

Re: Net::EasyTCP

2006-12-01 Thread D. Bolliger
Derek B. Smith am Freitag, 1. Dezember 2006 20:31: --- zentara [EMAIL PROTECTED] wrote: On Thu, 30 Nov 2006 13:34:16 -0800 (PST), [EMAIL PROTECTED] I need to gather a single filename on hundreds of servers ranging in *UX flavors from AIX, HP, [snip] I was initially thinking an scp

Re: Complex regex help

2006-12-01 Thread Rob Dixon
Omega -1911 wrote: Hi Rob Dani, Thanks for your help!!! I will try the suggestion you made Rob and as soon as I finish typing this, I'll try Dani's code. I had someone by the name of Chen Ken contact me off-list and provided me with the following regex that appeared to work. Please let me

Limit of number of files that can be opened in perl

2006-12-01 Thread Ravi Malghan
Hi: is there a limit on number of files that can be open within perl. I am opening about 194 files and am seeing some weird behaviour. When i write to the filehandles, I see it writes ok to some files and not to the others. But I donot see any errors either. Just that somefiles donot have what

Re: Limit of number of files that can be opened in perl

2006-12-01 Thread Owen
On Fri, 1 Dec 2006 18:46:38 -0800 (PST) Ravi Malghan [EMAIL PROTECTED] wrote: Hi: is there a limit on number of files that can be open within perl. I am opening about 194 files and am seeing some weird behaviour. When i write to the filehandles, I see it writes ok to some files and not to

Re: Limit of number of files that can be opened in perl

2006-12-01 Thread John W. Krahn
Ravi Malghan wrote: Hi: is there a limit on number of files that can be open within perl. I am opening about 194 files and am seeing some weird behaviour. When i write to the filehandles, I see it writes ok to some files and not to the others. But I donot see any errors either. Just that

Re: Net::EasyTCP

2006-12-01 Thread Bill Jones
On 11/30/06, Derek B. Smith [EMAIL PROTECTED] wrote: but not all clients have ssh running and other nuances such as no root ssh sign-in, no ftp, and /etc/passwd is protected from downloads and reads by anyone but root. Well, since we seem to be going down this path -- you could try hacking

Re: Net::EasyTCP

2006-12-01 Thread Derek B. Smith
--- D. Bolliger [EMAIL PROTECTED] wrote: Derek B. Smith am Freitag, 1. Dezember 2006 20:31: --- zentara [EMAIL PROTECTED] wrote: On Thu, 30 Nov 2006 13:34:16 -0800 (PST), [EMAIL PROTECTED] I need to gather a single filename on hundreds of servers ranging in *UX flavors from AIX,

Re: Limit of number of files that can be opened in perl

2006-12-01 Thread Ravi Malghan
bash-2.05$ ulimit -a core file size (blocks) unlimited data seg size (kbytes) unlimited file size (blocks) unlimited open files 256 pipe size (512 bytes) 10 stack size (kbytes) 8192 cpu time (seconds) unlimited max user processes