Newbie resource request.

2003-07-14 Thread Denham Eva
Hello List, Wonder if anyone can guide me in the right direction. I would like to learn CGI programming with perl, so if anyone has any links to any really good beginner sites/tutorials? Many TIA Regards Denham Eva Oracle DBA Linux like TeePee... No Windows, No Gates and Apache inside!

Re: Newbie resource request.

2003-07-14 Thread stahl
Hello Eva, I would like to learn CGI programming with perl, so if anyone has any links to any really good beginner sites/tutorials? Take a look at www.cgi101.com - there you find an online-class and - in my opinion - a good introduction into cgi with the help of perl. You can download a few

Tail -f from a cgi script

2003-07-14 Thread Eugene Geldenhuys
Hi all My woes continue I had a great way to view system logs in real-time, all I did is direct the output of the tail command to my browser - a simple tail-f worked well. Since upgrading to RH8 and Apache 2.x this no longer works, though a tail -n20 still does. Does anyone have a way to output

Getting the domain name

2003-07-14 Thread Mike Blezien
Hello, We have a fairly simple redirect script a url is entered, and even tho there are directions to not enter the http://www; sometimes we get it or http://;... what is the simplest method to extract just the domain name if a http://www.somedomain_name.com; or http://somedomain_name.com; is

Re: Getting the domain name

2003-07-14 Thread drieux
On Monday, Jul 14, 2003, at 09:37 US/Pacific, Mike Blezien wrote: Hello, We have a fairly simple redirect script a url is entered, and even tho there are directions to not enter the http://www; sometimes we get it or http://;... what is the simplest method to extract just the domain name if a

Re: Getting the domain name

2003-07-14 Thread Wiggins d'Anconia
Mike Blezien wrote: Hello, We have a fairly simple redirect script a url is entered, and even tho there are directions to not enter the http://www; sometimes we get it or http://;... what is the simplest method to extract just the domain name if a http://www.somedomain_name.com; or

Re: sending mail to a group using perl

2003-07-14 Thread Sally Librilla
Its for global group. From: Jon Hogue [EMAIL PROTECTED] To: Sally Librilla [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: sending mail to a group using perl Date: Tue, 08 Jul 2003 08:00:28 -0400 Is this a global group or one you've set up for your personal use? At 05:37 AM 7/8/2003 +,

Re: alarm(x) question.

2003-07-14 Thread denis
Keven.. This looks really good.. Is it the eval that keeps the alarm from kicking the script out of the loop? I can tell I'll have some reading to do in the morning.. On Sat, 12 Jul 2003, Kevin Pfeiffer wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Hi, I'm kind of

Re: alarm(x) question.

2003-07-14 Thread Kevin Pfeiffer
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: On Sat, 12 Jul 2003, Kevin Pfeiffer wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Hi, I'm kind of new to Perl, so please forgive the question.. I'm trying to use perl to read a file and then run a program

Mini perl error during build

2003-07-14 Thread Colin
I'm building perl 5.8, and it appears to build OK, except that there is an Error Code 1 (ignored) as shown below: LD_LIBRARY_PATH=my_perl_build_dir ./miniperl -w -llib -MExporter -e '?' || make minitest *** Error code 1 (ignored) rm -f lib/re.pm cat ext/re/re.pm lib/re.pm

Re: A thank you gift

2003-07-14 Thread Gary Stainburn
On Friday 11 July 2003 9:50 pm, Michael Weber wrote: I have asked many questions of this group and gotten many good answers. No matter how dumb the question, I have always gotten a kind response. Thank you. The fruit of my recent efforts is a program that colorizes text for easier viewing.

NEED HELP WITH REGEX....

2003-07-14 Thread magelord
hi, i have this regex: \.(?!.png|.log)[^.]*$ how can i replace the .before png and log with nothing? the problem is, the alternation can be longer, like that: \.(?!.png|.log|.txt|.c|.cpp and so on )[^.]*$ how could i do that? THANKS:-) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Initializing code in a module...

2003-07-14 Thread Hamish Whittal
Hi People, Anyone know whether or how I can initialise code when calling any of the subroutines within a module? I don't necessarily want to call the module personally, I would like it to be called when I call any of the subroutines. Thanks in advance, Hamish -- To unsubscribe, e-mail: [EMAIL

What is faster?

2003-07-14 Thread Victor Peinado
Hi list, I have a bilingual dictionary in a file with the following format: word1:sense1 sense2 ... senseN word2:sense1 sense2 ... senseN ... I'm doing a simple script which looks for a word and returns all the possible translations. What's the faster (or the more efficient) way to do that when

Re: Initializing code in a module...

2003-07-14 Thread Tassilo von Parseval
On Mon, Jul 14, 2003 at 11:41:40AM +0200 Hamish Whittal wrote: Anyone know whether or how I can initialise code when calling any of the subroutines within a module? I don't necessarily want to call the module personally, I would like it to be called when I call any of the subroutines. You

Re: Hash to array of arrays

2003-07-14 Thread Rob Dixon
Hi Jerry. I'm struggling to make sense of this. This is as far as I have got. You have the following variables $id (constant for the purposes of this question) A source hash %DAT with keys qw(good_setups pin height). A derivative hash %pin with keys qw(order depth). The hash %pin is

Re: null fields from split

2003-07-14 Thread Rob Dixon
David Storrs wrote: Greetings all, Given this code: my $TOKEN_DELIMS = qr/[^\w\-'\$]/; my $text = # string containing the contents of an mbox file my @tokens = split /$TOKEN_DELIMS/o, $text; I end up with a large number of null strings ('') in @tokens. After RTFMing on split, I

Re: Stopping File::Find [SORTA RESOLVED]

2003-07-14 Thread Beau E. Cox
- Original Message - From: Beau E. Cox [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 5:17 AM Subject: Stopping File::Find Hi - Any way to stop File::Find's directory scanning from the 'wanted' sucroutine? I would like to curtail processing early for while

How to run a shell command but not waiting for the result ?

2003-07-14 Thread LI NGOK LAM
I've tried to use exec, system, and ``. And also with and without $| = 1; but seems unable to do what I want. What I want to do is suppose like this : print Start; exec notepad; print End; but I found my results are : If I can see End, the notepad won't come, If I can run the notepad, I can't

Re: Stopping File::Find [SORTA RESOLVED]

2003-07-14 Thread Steve Grazzini
On Mon, Jul 14, 2003 at 06:01:33AM -1000, Beau E. Cox wrote: From: Beau E. Cox [EMAIL PROTECTED] Any way to stop File::Find's directory scanning from the 'wanted' sucroutine? Well... here's what I ended up doing: ... eval { find (\wanted, $source); }; if ($@ $@ !~

Re: How to run a shell command but not waiting for the result ?

2003-07-14 Thread Beau E. Cox
- Original Message - From: LI NGOK LAM [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 6:05 AM Subject: How to run a shell command but not waiting for the result ? I've tried to use exec, system, and ``. And also with and without $| = 1; but seems unable to do what I

Re: How to run a shell command but not waiting for the result ?

2003-07-14 Thread Jenda Krynicky
From: LI NGOK LAM [EMAIL PROTECTED] I've tried to use exec, system, and ``. And also with and without $| = 1; but seems unable to do what I want. If everything else fails, try to read the manual :-) perldoc -f exec exec LIST exec PROGRAM LIST The exec function executes a system command

Re: Stopping File::Find [SORTA RESOLVED]

2003-07-14 Thread Beau E. Cox
- Original Message - From: Steve Grazzini [EMAIL PROTECTED] To: Beau E. Cox [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 6:12 AM Subject: Re: Stopping File::Find [SORTA RESOLVED] [snipped] sub wanted { if (condition) { $File::Find::prune++;

Getting the domain name

2003-07-14 Thread Mike Blezien
Hello, We have a fairly simple redirect script a url is entered, and even tho there are directions to not enter the http://www; sometimes we get it or http://;... what is the simplest method to extract just the domain name if a http://www.somedomain_name.com; or http://somedomain_name.com; is

opening SSL, security, (authorize.net)

2003-07-14 Thread mario kulka
Did enyone have to create a script to process credit cards using the AIM method through the AuthorizeNet gateway? I'm a little bit lost. There are few things I must do and never done before: [e.g. open a SSL connection between my hosting server and their gateway and then post the data (credit

RE: Hash to array of arrays

2003-07-14 Thread Charles K. Clarkson
Jerry Preston [EMAIL PROTECTED] wrote: : : I have the following hash: This is not a hash. it is a partial algorithm. It contains at least two hashes. Neither of which seem to be a hash of an array of arrays. Can you show us the hash you're referring to? : for $j ( 1..20 ) { : for $i

Re: How to run a shell command but not waiting for the result ?

2003-07-14 Thread Paul Johnson
On Mon, Jul 14, 2003 at 06:31:31PM +0200, Jenda Krynicky wrote: You want system( 1, notepad); Actually this is something that should be documented better. I don't think anyone really wants to document it because it is such an ugly hack :-( -- Paul Johnson - [EMAIL PROTECTED]

Search and Insert into Hash

2003-07-14 Thread bseel
What I am trying to do is to take lines out of a file that are formatted like: SYSTEM=value1 DOMAIN=value2 etc. There are about 1000 lines like that and what I need to do is to take all of the keys (like system and domain) and put them into a hash. But each of those keys has multiple values

RE: What is faster?

2003-07-14 Thread Dan Muey
Hi list, Howdy I have a bilingual dictionary in a file with the following format: word1:sense1 sense2 ... senseN word2:sense1 sense2 ... senseN ... I'm doing a simple script which looks for a word and returns all the possible translations. What's the faster (or the more

Re: Search and Insert into Hash

2003-07-14 Thread Jenda Krynicky
From: [EMAIL PROTECTED] What I am trying to do is to take lines out of a file that are formatted like: SYSTEM=value1 DOMAIN=value2 etc. There are about 1000 lines like that and what I need to do is to take all of the keys (like system and domain) and put them into a hash. But each of

Re: How to run a shell command but not waiting for the result ?

2003-07-14 Thread Jenda Krynicky
From: Paul Johnson [EMAIL PROTECTED] On Mon, Jul 14, 2003 at 06:31:31PM +0200, Jenda Krynicky wrote: You want system( 1, notepad); Actually this is something that should be documented better. I don't think anyone really wants to document it because it is such an ugly hack :-(

MIME::LITE question

2003-07-14 Thread Perl
Is there a way to make a from address other than an SMTP address? For example, I want the From header to say something like, Web Log Report. It doesn't have to be from a resolvable Internet address. Is this possible? Does anyone know the correct syntax? Only way I get this to work is by using ''.

Re: opening SSL, security, (authorize.net)

2003-07-14 Thread Wiggins d'Anconia
mario kulka wrote: Did enyone have to create a script to process credit cards using the AIM method through the AuthorizeNet gateway? I'm a little bit lost. There are few things I must do and never done before: [e.g. open a SSL connection between my hosting server and their gateway and then post

Re: use GD::Graph::linespoints;

2003-07-14 Thread Wiggins d'Anconia
Jerry Preston wrote: Hi! I am trying to change the background color of my graph, I do not quite understand how to do it. I have read the doc a number of times an I am missing it. I am looking for a working examples. Are there any on the web? Didn't see any responses, a Google Search turned up

Reference to Array

2003-07-14 Thread Peter Fleck
I swear that some day I will understand references. In the meantime... I wrote some perl that used a hash where each value was a reference to an array. No problem. Here is the segment from within a foreach loop that populates the hash. @storedates = ($sdates, $idates);

search and add

2003-07-14 Thread Boon Chong Ang
Hi, Just say I have a file and the content of the file is something like this. Xx Xxx Xxxx [all sort of description] *|NET ABC13/ABC13L/AB_281 1.2356e-05PF *|S [follow by some description] R1 F12346 F12342 0.001 R2 F12342 F12345 5.001 *|NET ABC3/ABC3L/AB_81 1.756e-05PF *|S

Re: Reference to Array

2003-07-14 Thread John W. Krahn
Peter Fleck wrote: I swear that some day I will understand references. In the meantime... I wrote some perl that used a hash where each value was a reference to an array. No problem. Here is the segment from within a foreach loop that populates the hash. @storedates = ($sdates,

Re: DBD::mysql::st execute failed: Got error -1 from table handler

2003-07-14 Thread Puth Chan Choth
My SQL statement is as below: $query=select date_format(login_time,'\%Y/\%m/\%d') as d, service,count(*), sum(connect_time),sum(bytes_sent),sum(bytes_rcvd), sum(bytes_total),avg(bps) from system_logins where to_days(login_time) = (to_days(NOW()) -1)

RE: A thank you gift

2003-07-14 Thread Charles K. Clarkson
Gary Stainburn [EMAIL PROTECTED] wrote: : : I liked you program so I took a copy. Then I thought : I'd use it as an excercise in 'PERL'ifying it. By this : I mean appling some of the things I've read about : writing perl scripts, such as removing transient : variables where possible, elliminaing