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!
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
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
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
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
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
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 +,
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
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
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
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.
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
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
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
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
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
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
- 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
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
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 ($@ $@ !~
- 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
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
- 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++;
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
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
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
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]
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
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
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
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 :-(
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 ''.
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
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
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);
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
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,
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)
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
39 matches
Mail list logo