RE: Separating the body of the text in email from its header

2007-10-26 Thread Nagasamudram, Prasanna Kumar
The usually the format of the mail will be HEADER1 HEADER2 HEADER3 .. .. .. HEADERn BODY Please note there will be a blank line b/w the end of the header and the body. So you start from the beginning of the mail and keep ignoring the lines until you find a blank line The rest of it would be

RE: sendmail

2007-02-20 Thread Nagasamudram, Prasanna Kumar
-Original Message- From: Sayed, Irfan (Irfan) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 4:07 PM To: beginners@perl.org Subject: sendmail Hi All, I need to send mail to all users defined in one array. I tried foreach loop but what is happening is it is sending mail to

RE: Calling a perl program from a perl script

2007-01-11 Thread Nagasamudram, Prasanna Kumar
-Original Message- From: Dharshana Eswaran [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 12:12 PM To: Jeff Pang Cc: Perl Beginners Subject: Re: Calling a perl program from a perl script On 1/11/07, Jeff Pang [EMAIL PROTECTED] wrote: I Have a perl program which runs

RE: constructing a http request using LWP..

2006-12-26 Thread Nagasamudram, Prasanna Kumar
From: positive mind [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 7:02 PM To: Nagasamudram, Prasanna Kumar Cc: beginners@perl.org Subject: Re: constructing a http request using LWP.. Hi Prasanna, Thanks for your reply, but i have to do this on linux

RE: constructing a http request using LWP..

2006-12-20 Thread Nagasamudram, Prasanna Kumar
Hi pm I had the same requirement, just with a press of a button, I need my inbox(all the login etc should be automated) I wrote the following script. (You may have to install the Win32::GuiTest module from cpan. (also change YOURLOGIN and YOURPASSWORD appropriately). With this you don't have

GD::Graph...crashing...

2006-09-20 Thread Nagasamudram, Prasanna Kumar
Hi All I'm trying to use the GD module. for plotting a graph on WINDOWS but my Perl script is crashing. Here is the piece of code which is crashing [Perl Command Line Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience.] use

RE: :Graph...crashing...

2006-09-20 Thread Nagasamudram, Prasanna Kumar
-GD [0.07] SVG-GD ppm Thanks Prasanna -Original Message- From: Lee Goddard [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 4:59 PM To: Nagasamudram, Prasanna Kumar; beginners@perl.org Subject: RE: :Graph...crashing... I'm trying to use the GD

RE: :Graph...crashing...

2006-09-20 Thread Nagasamudram, Prasanna Kumar
[2.07] GDS2 10. SVG-GD [0.07] SVG-GD ppm Thanks Prasanna -Original Message- From: Lee Goddard [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 5:23 PM To: Nagasamudram, Prasanna Kumar; beginners@perl.org Subject: RE: :Graph

RE: extracting line between words

2006-09-14 Thread Nagasamudram, Prasanna Kumar
Hi Mayank Please add $\= ; to your code as follows. $\ is the output field separator. #!/usr/bin/perl use warnings; use strict; my @line = The Sun rises in the east and ; my $store; $\= ; ## - OUTPUT FIELD SEPERATOR## while(@line){ print if $_ =~ /The/ .. /east/ ;

RE: Image split....

2006-08-29 Thread Nagasamudram, Prasanna Kumar
-Original Message- From: Gretar Mar Hreggvidsson [mailto:[EMAIL PROTECTED] Sent: Monday, August 28, 2006 6:41 PM To: Nagasamudram, Prasanna Kumar Cc: beginners@perl.org Subject: Re: Image split But If I change the following line $img-read(file='p.bmp', type='bmp') or die $img

Image split....

2006-08-28 Thread Nagasamudram, Prasanna Kumar
Hi All Can anybody suggest me any module/script that can be used to split and image into pieces? I tried to search in CPAN also googled a lot. I could only find image splitting software..but I need command line utility. Thanks Prasanna

RE: Image split....

2006-08-28 Thread Nagasamudram, Prasanna Kumar
-Original Message- From: Gretar Mar Hreggvidsson [mailto:[EMAIL PROTECTED] Sent: Monday, August 28, 2006 5:29 PM To: Nagasamudram, Prasanna Kumar Cc: beginners@perl.org Subject: Re: Image split Hi I would probably use the module Imager (see CPAN), and it's crop() function

RE: calculate the value in an array of array

2006-08-18 Thread Nagasamudram, Prasanna Kumar
-Original Message- From: chen li [mailto:[EMAIL PROTECTED] Sent: Friday, August 18, 2006 7:00 PM To: beginners@perl.org Subject: calculate the value in an array of array Dear all, I have an array of array look like this: @array_of_array=( [1,2,3,4,5],

RE: advise on writing cgi scripts to create + manage certificate authority.

2006-08-03 Thread Nagasamudram, Prasanna Kumar
Hi Gregory If you want to lean how to write cgi scripts using perl ... The following link would be a great start... http://cgi101.com/book/ch1/text.html Thanks Prasanna -Original Message- From: Gregory Machin [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 2:09 PM To:

RE: Specify download file name

2006-07-12 Thread Nagasamudram, Prasanna Kumar
:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 7:04 PM To: Nagasamudram, Prasanna Kumar Cc: beginners@perl.org Subject: Re: Specify download file name Hi Prasanna Thanks for the reply. But that is not helping me in the situation Thanks Anish Nagasamudram, Prasanna Kumar wrote: Hi Anish Can you

RE: Specify download file name

2006-07-11 Thread Nagasamudram, Prasanna Kumar
Hi Anish Can you try adding the following to your $cgiObject-header ? -attachment='$filename.zip', And changing -type='application/zip' to -type='application/octet-stream' [PS : The above is not tested] Thanks Prasanna -Original Message- From: Anish Kumar K. [mailto:[EMAIL

RE: Tk problem

2006-07-07 Thread Nagasamudram, Prasanna Kumar
Hi Raimo If you are running window, then can you try installing through ppm (perl package manager)? C:\ppm ppminstall Tcl-Tk This way it wil go smoothly and also it will check for dependecies and download automatically. Thanks Prasanna -Original Message- From: [EMAIL PROTECTED]

RE: Urgent :search and replace

2006-06-22 Thread Nagasamudram, Prasanna Kumar
Hi Preethi Can you try... perl -pi.bak -e 's/(ab=test1.*?dc=test3)/ab=chk1,bc=chk2/sg' filename [untested] Thanks Prasanna -Original Message- From: Preethi [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 3:21 PM To: Dr.Ruud Cc: beginners@perl.org Subject: Re: Urgent

RE: Does any one have nice programs for PERL AJAX

2006-06-21 Thread Nagasamudram, Prasanna Kumar
Hi Anish I happened to browse through the following page http://www.perl.com/pub/a/2006/03/02/ajax_and_perl.html which actually explains what is Ajax and how to use the perl warapper CGI::Ajax with a simple example. Thanks Prasanna -Original Message- From: Anish Kumar K.

RE: Perl one liner....

2006-05-24 Thread Nagasamudram, Prasanna Kumar
-0700, M Senthil Kumar wrote: On Tue, 23 May 2006, Nagasamudram, Prasanna Kumar wrote: |I'm trying to do a find and replace on the file content using the |following command on windows. [snipped] |perl -p -i.bak -e 's/FOO/BAR/g' abc.txt [snipped] Hi, Try: $ perl -pi.bak -e 's/FOO

Perl one liner....

2006-05-23 Thread Nagasamudram, Prasanna Kumar
Hi All I'm trying to do a find and replace on the file content using the following command on windows. perl -p -i.bak -e 's/FOO/BAR/g' abc.txt abc.txt === test abcd sdfds sdfdsf fdFOO fsd fds hgjhg df fsd hfhj gFOOfd gfdgfd gdf gdf gdf sfsd fsd But the abc.txt remains

RE: Any CPAN module similar to Winrunner

2006-05-19 Thread Nagasamudram, Prasanna Kumar
Hi Dhanashri If you are looking for GUI test automation.you can try Win32::GUITest. Thanks Prasanna -Original Message- From: Shalaka [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 6:56 PM To: beginners@perl.org Subject: Any CPAN module similar to Winrunner Hi List! I'm

RE: Print

2006-05-19 Thread Nagasamudram, Prasanna Kumar
Hi Kaushal The only alternative I can think of is to convert your chm file to pdf or rtf and then attempt a print. You can get the convert from http://www.freedownloadscenter.com/Best/free-chm-to-pdf.html Also can you please send me the chm file? It can be quite handy to me. Thanks

RE: Query

2006-05-19 Thread Nagasamudram, Prasanna Kumar
Hi Kaushal -w is to enable warning messages. Try running the following code to see the difference with and w/o -w. x.pl - $str=a+2; print $str,\n; - $ perl x.pl 2 $ perl -w x.pl Unquoted string a may clash with future reserved word at p2.pl line