Hi Werner,
Werner Otto wrote on 24.05.2004:
Hi there,
How to I include or call another cgi script from a current one. I want to
create say a header script that I just want to include it when I want to.
What does the syntax look like?
Regards
Otto
How about HTML::Template? It was written
--- Werner Otto [EMAIL PROTECTED] wrote:
Hi there,
How to I include or call another cgi script from a current one.
What does the syntax look like?
Don't do it that way; See perldoc require
That is what I would recommend - otherwise you would need to have the
called cgi call your
I have got a simple script that is straight out of the man page for
Tie::Google. My problem is the script simply hangs. I bet this is
because it is not able to use the environment proxy variables
I have set my proxy ( requires no auth ) as
export http_proxy=http://myproxy:80
( I am using a
Doing a fork shall help.
Child runs the system command and exit. Pather creats a new child for the
rest.
foreach my $cmd (@cmds) {
if (fork() == 0) { # child
system($cmd);
exit(0);
}
}
Is this what you need?
Marcos
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
Hello everybody,
While interrogating a MySQL database, I'm trying to split the results into
multiple pages.
I don't know where I'm going wrong. When I run the script below, only the
number of pages is printed on screen.
Can anyone help?
#!/usr/bin/perl
use CGI :all;
use
Hi Folks.
I've got a question regarding Thread::Pool. Basicaly, I'll be migrating
a rather large user base over one weekend. I've so far got everything
sorted out so that I can parse out all the data into flat text files,
and can then start doing the migration.
So, my next worry then is to
On Sunday 23 May 2004 08:25 pm, Ramprasad A Padmanabhan wrote:
I have got a simple script that is straight out of the man page for
Tie::Google. My problem is the script simply hangs. I bet this is
because it is not able to use the environment proxy variables
I have set my proxy ( requires no
Hi There,
I am having trouble with string creation.
I need to do something like:
system(ping -s localhost 56 1);
This will echo:
64 bytes from localhost (127.0.0.1): icmp_seq=0. time=0. ms
How do I get this echo'd value as a string value? I will be splitting this
string up into
Hi Otto.
Sounds like you are rolling your own monitor applicaiton?
Without having tested this, I'd say:
my $result = system(ping -s localhost 56 1);
Or, do you wish to receive multiple results for that one command?
I'm wondering, is this really the optimail solution to your problem.
Werner Otto wrote:
Hi There,
I am having trouble with string creation.
I need to do something like:
system(ping -s localhost 56 1);
This will echo:
64 bytes from localhost (127.0.0.1): icmp_seq=0. time=0. ms
How do I get this echo'd value as a string value? I will be splitting
this
I tought:
$index = 1
$var = ${$myhash{mykey}}[$index];
would do the trick.
But it don´t.
Any suggestions?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
* Bastian Angerstein [EMAIL PROTECTED] [2004-05-24T08:07:37]
$index = 1
$var = ${$myhash{mykey}}[$index];
$var = $myhash{mykey}[$index]
$var = $myhash{mykey}-[$index]
Either will do.
--
rjbs
pgpc308dwTSbR.pgp
Description: PGP signature
Hi Bastian,
Bastian Angerstein wrote on 24.05.2004:
I tought:
$index = 1
$var = ${$myhash{mykey}}[$index];
would do the trick.
But it don´t.
Any suggestions?
Your syntax implies that there already is an anonymous array stored as value of
$myhash{mykey}. You assign the second value within
sub xpto {
my %a = map {$_ = undef} (@_);
return \%a;
}
or
sub xpto {
return {map {$_ = undef} (@_)};
}
I'm using this code but shall exist someting clearner without map. Can you
help me?
Thanks
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On May 24, 2004, at 7:46 AM, [EMAIL PROTECTED] wrote:
sub xpto {
my %a = map {$_ = undef} (@_);
return \%a;
}
or
sub xpto {
return {map {$_ = undef} (@_)};
}
I'm using this code but shall exist someting clearner without map. Can
you
help me?
I find map() to be the ideal solution. That's
-Original Message-
From: James Edward Gray II [mailto:[EMAIL PROTECTED]
Sent: Monday, May 24, 2004 3:00 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: get hash from array
On May 24, 2004, at 7:46 AM, [EMAIL PROTECTED] wrote:
sub xpto {
my %a = map {$_ =
Hi,
I have a program with some ftp code in it. This is working fine on a Unix
machine but is giving the following error on a Windows machine.
Can't locate Net/FTP.pm in @INC at
\\mmpapp01\nal_sd\gxsftp\programs\get-edi.pl line 17.
BEGIN failed--compilation aborted at
On Mon, 2004-05-24 at 13:46, [EMAIL PROTECTED] wrote:
sub xpto {
my %a = map {$_ = undef} (@_);
return \%a;
}
or
sub xpto {
return {map {$_ = undef} (@_)};
}
I'm using this code but shall exist someting clearner without map. Can you
help me?
If what you want is to
On Mon, 2004-05-24 at 14:09, Jose Alves de Castro wrote:
On Mon, 2004-05-24 at 13:46, [EMAIL PROTECTED] wrote:
sub xpto {
my %a = map {$_ = undef} (@_);
return \%a;
}
or
sub xpto {
return {map {$_ = undef} (@_)};
}
I'm using this code but shall exist
On May 24, 2004, at 8:06 AM, [EMAIL PROTECTED] wrote:
I had the idea that something like:
sub xpto {
my %a;
[EMAIL PROTECTED] = ();
@[EMAIL PROTECTED] = ();
return \%a;
}
should work.
Make the inline change above and it will.
James
Obviuslly this idea will be used in major subroutines.
one way to do this is to cat the output of ping to a file..or simply..
@u_there=`ping -s localhost 56 1`; # watch the quotes
Mandar
Original message
Date: Mon, 24 May 2004 11:58:18 +0100
From: Werner Otto [EMAIL PROTECTED]
Subject: String issue?
To: [EMAIL PROTECTED]
Hi There,
I
--As of Monday, May 24, 2004 8:43 AM +0600, LRMK is alleged to have said:
By the way is PostgreSQL free and if yes where can I get a copy to
practise myself.
--As for the rest, it is mine.
Yes: http://www.postgresql.org/
Daniel T. Staal
Ich werde ab 13.05.2004 nicht im Büro sein. Ich kehre zurück am
04.06.2004.
Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. In dringenden
Fällen die DB-Administration betreffend, bitte eine entsprechende Note an
die Adresse dba-intel bzw. dba-host senden
--
To unsubscribe, e-mail:
NAME
beginners-faq - FAQ for the beginners mailing list
1 - Administriva
1.1 - I'm not subscribed - how do I subscribe?
Send mail to [EMAIL PROTECTED]
You can also specify your subscription email address by sending email to
(assuming [EMAIL PROTECTED] is your email address):
this will work! thanks!
one more question...
I am setting an array up to be the output of a system app command like
this
my @ftapes = system (evmvol -w label_state=3|grep barcode);
print $ftapes[0];
it prints everything...meaning 5 lines. Or when I say print $ftapes[0,1]
it errors saying
On May 24, [EMAIL PROTECTED] said:
I have a program with some ftp code in it. This is working fine on a Unix
machine but is giving the following error on a Windows machine.
Can't locate Net/FTP.pm in @INC at
\\mmpapp01\nal_sd\gxsftp\programs\get-edi.pl line 17.
You appear to be missing the
On May 24, Werner Otto said:
system(ping -s localhost 56 1);
This will echo:
64 bytes from localhost (127.0.0.1): icmp_seq=0. time=0. ms
How do I get this echo'd value as a string value? I will be splitting this
string up into segments to fill my fields in my database table.
You
Your Mail has been bounced from the OutPost/1.800eMail Server
Because [EMAIL PROTECTED] is not a valid username
Original message, less any attachments, follows:
---BeginMessage---
--As of Monday, May 24, 2004 8:43 AM +0600,
Hello. I am using Windows 2000 to connect to an Oracle database over the company
network. I have the DBI/DBD drivers installed on my computer. I want to connect using
the script below. When i run the script, it doesn't come back with anything. It just
goes to the command prompt. Can someone
Just a note: I also tried $main::0 as well as $0
(as in
perl -e '$0 = foo;print $0\n;'
perl -e '$main::0 = foo;print $0\n;')
after I used caller() to make sure it was in main::.
Any ideas?
JupiterHost.Net wrote:
Hello group!
Maybe a bit much for a beginners list (I looked and looked and
Just a note: I also tried $main::0 as well as $0
(as in
perl -e '$0 = foo;print $0\n;'
perl -e '$main::0 = foo;print $0\n;')
after I used caller() to make sure it was in main::.
Any ideas?
JupiterHost.Net wrote:
Hello group!
Maybe a bit much for a beginners list (I looked and looked and
Cristi Ocolisan wrote:
Hello everybody,
While interrogating a MySQL database, I'm trying to split the results into
multiple pages.
I don't know where I'm going wrong. When I run the script below, only the
number of pages is printed on screen.
Can anyone help?
You may want to check out
Hello,
we're currently using the Mail::Audit module to process a perl script that pipes
email sent to fake forward emails address, then send it's to a real
address,... all works fine except if it's a HTML formatted email. My question
is, is it possible with this module to determine if it's HTML
Hi all,
I have question with respect to memory utilization using perl. I am reading a huge
file close to 786432 lines of hex values am storing in an array. I do a data
reformatting using the data in these array in the sequence of process generate a
number of arrays eventually write into a
Hello,
we're currently using the Mail::Audit module to process a perl script
that pipes
email sent to fake forward emails address, then send it's to a real
address,... all works fine except if it's a HTML formatted email. My
question
is, is it possible with this module to determine if
off the top of my head I would suggest you slice off the slice off the pieces
that you have used already when pulling data from the original array. That
way the array gets smaller as you finish modifiying its info and transferring
it somewhere else.
BassFool
On Monday 24 May 2004 02:57 pm,
Hi all,
I have question with respect to memory utilization using perl. I am reading a huge
file close to 786432 lines of hex values am storing in an array. I do a data
reformatting using the data in these array in the sequence of process generate a
number of arrays eventually write into a
Hi all,
I have question with respect to memory utilization using perl. I am
reading a huge file close to 786432 lines of hex values am storing in
an array. I do a data reformatting using the data in these array in
the sequence of process generate a number of arrays eventually write
into a
What I was getting at, is a email is sent as a standard plain text message, the
body content of the message is sent with no problems, but if the message is sent
as HTML formatted email, then all the HTML elements, tags...etc are included in
the body of the message so I was wondering, when
This is what comes in the body of the email message if it's not plain text
message and need to pass the email with the right headers so it's displayed
correctly when received:
Message Body content:
This is a multi-part message in MIME format.
--=_NextPart_000_0013_01C4419E.02807DF0
Please bottom post...
Mike Blezien wrote:
This is what comes in the body of the email message if it's not plain
text message and need to pass the email with the right headers so it's
displayed correctly when received:
Right, but the message itself is MIME and multipart. So I don't
understand
Read below
Wiggins d'Anconia wrote:
Please bottom post...
Mike Blezien wrote:
This is what comes in the body of the email message if it's not plain
text message and need to pass the email with the right headers so it's
displayed correctly when received:
Right, but the message itself is MIME and
Mike Blezien wrote:
Read below
[snip]
Basically what we have is a piped forwarding script that when a fake
email address, IE [EMAIL PROTECTED] is recieved it's piped to script:
#!/usr/bin/perl
##
use Mail::Audit;
use DBI;
use
Wiggins d'Anconia wrote:
Mike Blezien wrote:
Read below
[snip]
Basically what we have is a piped forwarding script that when a fake
email address, IE [EMAIL PROTECTED] is recieved it's piped to
script:
#!/usr/bin/perl
##
use
Wiggins d'Anconia wrote:
Definitely more clear. See if my comments help, if not fire off some
more questions :-). This is why I (and others) are so adamant about not
handling mail directly, amazing that such a complex beast can be made to
seem so simple *most* of the time...
Hi,
Can some one provide an example sample on how to use it?
Thank you best regards,
ABC
-Original Message-
From: Jose Alves de Castro [mailto:[EMAIL PROTECTED]
Sent: Friday, May 21, 2004 6:24 PM
To: Boon Chong Ang
Cc: [EMAIL PROTECTED]
Subject: Re: matrix solving
Try using
46 matches
Mail list logo