Re: Template

2004-05-24 Thread Jan Eden
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

Re: Template

2004-05-24 Thread Bill Jones
--- 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

using environment proxy variables for LWP::Simple

2004-05-24 Thread Ramprasad A Padmanabhan
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

RE: array output

2004-05-24 Thread Marcos . Rebelo
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

multiple pages results

2004-05-24 Thread Cristi Ocolisan
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

Thread::Pool

2004-05-24 Thread Anders Holm
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

Re: using environment proxy variables for LWP::Simple

2004-05-24 Thread Beau E. Cox
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

String issue?

2004-05-24 Thread Werner Otto
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

Re: String issue?

2004-05-24 Thread Anders Holm
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.

Re: String issue?

2004-05-24 Thread Ramprasad A Padmanabhan
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

How get a special value of an arrayfield stored in an hash?

2004-05-24 Thread Bastian Angerstein
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

Re: How get a special value of an arrayfield stored in an hash?

2004-05-24 Thread Ricardo SIGNES
* 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

Re: How get a special value of an arrayfield stored in an hash?

2004-05-24 Thread Jan Eden
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

get hash from array

2004-05-24 Thread Marcos . Rebelo
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

Re: get hash from array

2004-05-24 Thread James Edward Gray II
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

RE: get hash from array

2004-05-24 Thread Marcos . Rebelo
-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 {$_ =

Missing Component

2004-05-24 Thread Satya_Devarakonda
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

Re: get hash from array

2004-05-24 Thread Jose Alves de Castro
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

Re: get hash from array

2004-05-24 Thread Jose Alves de Castro
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

Re: get hash from array

2004-05-24 Thread James Edward Gray II
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.

Re: String issue?

2004-05-24 Thread Mandar Rahurkar
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

Re: A MySQL Question

2004-05-24 Thread Daniel Staal
--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

Manfred Beilfuß/DVAG ist außer Haus.

2004-05-24 Thread Manfred . Beilfuss
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:

perl.beginners Weekly list FAQ posting

2004-05-24 Thread casey
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):

Re: array output

2004-05-24 Thread DBSMITH
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

Re: Missing Component

2004-05-24 Thread Jeff 'japhy' Pinyan
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

Re: String issue?

2004-05-24 Thread Jeff 'japhy' Pinyan
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

Returned eMail: User Unknown

2004-05-24 Thread Bouncer
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,

Connecting to Oracle over network

2004-05-24 Thread jason corbett
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

Re: Modify $0 in Perl embedded in C

2004-05-24 Thread JupiterHost.Net
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

Re: Modify $0 in Perl embedded in C

2004-05-24 Thread JupiterHost.Net
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

Re: multiple pages results

2004-05-24 Thread JupiterHost.Net
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

Determine Email Headers

2004-05-24 Thread Mike Blezien
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

Question of memory management in Perl

2004-05-24 Thread Hari Krishnaan
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

Re: Determine Email Headers

2004-05-24 Thread Wiggins d Anconia
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

Re: Question of memory management in Perl

2004-05-24 Thread Eric Walker
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,

Question of memory management in Perl

2004-05-24 Thread Hari Krishnaan
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

Re: Question of memory management in Perl

2004-05-24 Thread Wiggins d Anconia
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

Re: Determine Email Headers

2004-05-24 Thread Mike Blezien
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

Re: Determine Email Headers

2004-05-24 Thread Mike Blezien
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

Re: Determine Email Headers

2004-05-24 Thread Wiggins d'Anconia
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

Re: Determine Email Headers

2004-05-24 Thread Mike Blezien
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

Re: Determine Email Headers

2004-05-24 Thread Wiggins d'Anconia
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

Re: Determine Email Headers

2004-05-24 Thread Mike Blezien
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

Re: Determine Email Headers

2004-05-24 Thread Mike Blezien
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...

RE: matrix solving

2004-05-24 Thread Boon Chong Ang
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