Re: search option in perl

2006-07-19 Thread Prasad
""Sayed, Irfan (Irfan)"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] .. Hi all, I need to search a file for a specific string thru perl script. for example i want to put following condition in the script. --- > first search the string string1 > and if that string found then

Re: split function

2006-07-19 Thread Prasad
econd: _cmvobsvr1mum Regards, Prasad ""Sayed, Irfan (Irfan)"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] .. -Original Message- From: Xavier Noria [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 19, 2006 1:33 PM To: Perl Beginners Subject: Re: split fu

Re: doubt..

2006-07-19 Thread Prasad
Ramesh, Here they have used '|' as a delimiter because already they are using the metacharacter '/' in the find pattern. In order to avoid backslashing the metacharacter '/' , they have used '|' as delimiter. Regards, Prasad ""Ankam, Rames

Re: doubt..

2006-07-19 Thread Prasad
Hi Ramesh, Yes. Here they have used '|' is a delimiter. Take a look at 'perlre'. ""Ankam, Ramesh Babu"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] .. Hi, Can any one please tell me what this pattern means " s|.*/|| ". Is it that '|' represents '/'. Please reply me soon.

Re: beginner

2009-07-15 Thread Prasad Joshi
I found Learning Perl very good, it could be a good place to start. On Wed, Jul 15, 2009 at 6:53 PM, Shawn H. Corey wrote: > On Wed, 2009-07-15 at 05:58 -0700, shridhar kyrlageri wrote: > > hi guys > > > > i am very new to perl . i want to learn this language but i dont know > > where to sart and

Query on Threads, receiving Segment Fault.

2009-11-02 Thread Prasad Joshi
PLease suggest Thanks and Regards, Prasad

Sharing objects between threads.

2009-11-03 Thread Prasad Joshi
s of a class. I tried this example just to validate the concept. Is there any way I can share objects across threads? These objects are not global. Thanks and Regards, Prasad

SOAP WSDL example

2009-12-29 Thread Ram Prasad
Hi All, I am trying to use SOAP WSDL for the first time I am not even able to initialize the script I am not sure if the WSDL is valid. How do I check this ? --- #!/usr/bin/perl use SOAP::WSDL; use Data::Dumper; my $soap = SOAP::WSDL->new(wsdl=>'http://smytoday.com/psmw/psmw? WSDL'); --

Perl Reference Books.

2010-03-22 Thread Prasad . Prabhakara
Hi, I am a new to Perl programming, please can anyone advice me right book to understand Perl. Thanks, Prasad Prabhakara Infrastructure Applications Cell:480-889-4171 Phone:83-6041 Email Firewall made the following annotations

parallel::forkmanager queue implentation in perl

2010-08-06 Thread Ramprasad Prasad
Hello , I have process that picks up multiple files from a directory forks child processes and each child process works on a batch of files and finishes the task I am thinking of this Parent process finds all files in jobs directory , divide tasks into $MAXCHILD processes but not exceeding $MAXBAT

Digital signatures using MIME::Lite

2010-08-09 Thread Ramprasad Prasad
Hi, I have a custome MIME::Lite / MIME::Parser script that picks up data from a DB and sends a mail. Now I need to digitally sign this mail Can I get some pointers , I dont know much about SSL -- Thanks Ram n

Re: Digital signatures using MIME::Lite

2010-08-09 Thread Ramprasad Prasad
On Mon, Aug 9, 2010 at 2:47 PM, Jeff Pang wrote: > 2010/8/9 Ramprasad Prasad : > > Hi, > > > > I have a custome MIME::Lite / MIME::Parser script that picks up data > from a > > DB and sends a mail. > > Now I need to digitally sign this mail > > > &

Best way of tailing a file

2010-08-10 Thread Ramprasad Prasad
On a linux server I need to "tail -f" a file continuosly in perl and whenever there is a new entry I insert into a DB If I use File::Tail::FAM I get this error Your vendor has not defined SGI::FAM macro FAM_DEBUG_OFF at /usr/lib/perl5/site_perl/5.8.8/File/Tail/FAM.pm line 16 I wanted to use FAM

Re: Imp

2010-08-30 Thread Ramprasad Prasad
On Mon, Aug 30, 2010 at 3:04 PM, Jyoti wrote: > Hello everyone, > > Can anyone please guide me with specific CPAN perl libraries/modules, to > send queries and get responses. I tried looking in CPAN,but I am still a > learner, so not able to get properly. > Can anyone reply me for the same please

Automating Weblogic monitoring Using Perl Scripts.

2010-09-15 Thread Prasad . Prabhakara
Hi, please can anyone suggest me a way how to get into this loop, I am really interested in programming and I don't know which way to go and start. I think someone can help me since I am new to Perl programming. Thanks, Prasad Prabhakara Infrastructure Applications Cell:480-889-4171 Pho

How do I recognize request from a mobile phone

2010-09-28 Thread Ramprasad Prasad
I need to display WAP version of pages when accessed from mobile, else WEB version What is the best of doing this -- Thanks Ram n

CGI::Session persist session

2010-09-28 Thread Ramprasad Prasad
I am using CGI::Session for session management of a wap page. Even if I don't delete the cookie I have seen that from nokia browsers the cookie does not persist , but persistance works fine with a web browser like firefox Is there anything special needed for nokia browsers -- Sent from my mobile

Template Toolkit for HTML Table with variable number of columns

2010-12-04 Thread Ramprasad Prasad
I have to show report from a database of a daily report of ids. I have simplified the code here Pasted at http://pastebin.com/v0XmMuZP #!/usr/bin/perl use strict; use Template; use CGI; # Everyday report from DB for each id # my %report = ( '2010-12-01' => { 1 => 'OK' , 2 => 'FAIL' , 4 => 'F

Re: advangtes of Perl on various languages

2011-01-05 Thread Ramprasad Prasad
On Tue, Jan 4, 2011 at 12:42 PM, Sunita Rani Pradhan < sunita.prad...@altair.com> wrote: > Hi All > > > >I would like to know answers of following questions : > > > > - What all advantages Perl has on top of other scripting languages like > Python , shell , Java ? > > > > - What is th

Auto correction of typos

2011-03-04 Thread Ramprasad Prasad
I have a web form where people sign up for updates by filling in their email address A lot of users end up not receiving the confirmation mailer because of typos in the email id Like yhaoo.com or hotmaill.com I would like to prompt the user for a possible typo , like the google "Did you mean this

Re: Auto correction of typos

2011-03-07 Thread Ramprasad Prasad
Now, the other part is the psychology on your end. What the hell is the > point of maintaining an email database that you're afraid people have > entered spam bot triggering emails into? You're either going to end up > sending to it eventually or you're asking your users (and us) to give you > inf

How do I get the content-disposition of a MIME::Entity part

2011-03-11 Thread Ramprasad Prasad
I have a simple code that gets all image parts of a message foreach my $part($entity->parts){ next if ($part->effective_type !~ m{image}); push(@images,$part); ... } But I want to get only the inline images and not the attached images How can I achieve this ? $part->content_disposition(

Re: parsing a delimited file

2011-04-01 Thread Ramprasad Prasad
See Inline comments use strict; > use warnings; > my $fname = $ARGV[0]; > open my $RFH,'<',$fname; > > while (<$RFH>) { >next unless /:/ and my %field = /(.*?):(.*?)/mg; # Wrong > # I would prefer doing this chomp; if(/^(.+?)\:(.+?)/){ $field{$1}=$2;} } >

Is CDB_File good for CDB in readonly

2011-04-03 Thread Ramprasad Prasad
I have a CDB database with 1 Million to 10 Million records .. This is just a key where the app needs to lookup if an entry exists or not. I dont need the value. My app will be looking up the key_exists() almost 100 times a second What is the fastest way of implementin this I have a few question

Re: Regular expression to capitalize first letter of words in sentence

2011-04-13 Thread Ramprasad Prasad
On 13 April 2011 11:40, Shlomit Afgin wrote: > > > > > Hi > > > I need to write regular expression that will capitalize the first letter of > each word in the string. > Word should be string with length that is greater or equal to 3 letters > exclude the words 'and' and 'the'. > > > I tried: > $

Extremely fast template processor

2011-05-27 Thread Ramprasad Prasad
I have a requirement of generating large number (> 100 thousand ) files from a single template by replacing the placeholders with respective values Currently I use Template-Toolkit, but is there a faster way ? Since my template is just dumb template ( no IF , no FOR etc ) .. I just need a simple

Convert HTML to PDF

2011-06-14 Thread Ramprasad Prasad
I am trying to use PDF::FromHTML on my linux ( Fedora 12 ) machine I have just copied the man page example but I cant get it to run --- #!/usr/bin/perl use PDF::FromHTML; my $pdf = PDF::FromHTML->new( encoding => 'utf-8' ); $pdf->load_file('source.html'); $pdf->convert( Fon

Re: Convert HTML to PDF

2011-06-15 Thread Ramprasad Prasad
On 14 June 2011 20:39, Dr.Ruud wrote: > On 2011-06-14 10:54, Ramprasad Prasad wrote: > > I am trying to use PDF::FromHTML on my linux ( Fedora 12 ) machine >> [...] >> >> Is there a better way of creating PDF from HTML .. I believe this >> particular >>

Creating a detached process in perl cgi

2011-07-13 Thread Ramprasad Prasad
I am trying a http API that would fork a background script and immediately return I tried using fork() and setsid() or using Proc::Background But the problem is my API hangs until the background script is complete Is there a way I can avoid this My code is here ( uses both fork and background

Re: Creating a detached process in perl cgi

2011-07-13 Thread Ramprasad Prasad
Ok I did get that working but not in pure perl. I put a system("nohup $process > /dev/null 2>&1 &"); instead of all the fork and setsid On 13 July 2011 20:07, Shlomi Fish wrote: > Hi Ram, > > On Wed, 13 Jul 2011 19:02:46 +0530 > Ramprasad Prasad wrot

perl reference

2011-07-29 Thread Rajeev Prasad
Hello, from here: http://www.troubleshooters.com/codecorn/littperl/perlsub.htm i found: In Perl, you can pass only one kind of argument to a subroutine: a scalar. To pass any other kind of argument, you need to convert it to a scalar. You do that by passing a reference to it. A reference to anyt

Sorting an extremely LARGE file

2011-08-07 Thread Ramprasad Prasad
I have a file that contains records of customer interaction The first column of the file is the batch number(INT) , and other columns are date time , close time etc etc I have to sort the entire file in order of the first column .. but the problem is that the file is extremely huge. For the large

Re: Sorting an extremely LARGE file

2011-08-07 Thread Ramprasad Prasad
On 7 August 2011 21:24, Shawn H Corey wrote: > On 11-08-07 11:46 AM, Ramprasad Prasad wrote: > >> I used a mysql database , but the order by clause used to hang the >> process indefinitely >> If I sort files in smaller chunks how can I merge them back ?? >> &g

Re: Sorting an extremely LARGE file

2011-08-07 Thread Rajeev Prasad
print $}' > tmp-file   sort   for id in `cat `;do grep $id >> sorted-large-file;done From: Ramprasad Prasad To: Shawn H Corey Cc: Perl Beginners Sent: Sunday, August 7, 2011 11:01 AM Subject: Re: Sorting an extremely LARGE file On 7 August 2011 21:24, Shawn H Corey wrote: >

Re: Sorting an extremely LARGE file

2011-08-07 Thread Ramprasad Prasad
s a lot of convincing On 8/8/11, Uri Guttman wrote: >>>>>> "RP" == Rajeev Prasad writes: > > RP> hi, you can try this: first get only that field (sed/awk/perl) > RP> whihc you want to sort on in a file. sort that file which i assume > RP> would b

one simple perl module for authentication

2011-08-10 Thread Rajeev Prasad
hi, is there one simple perl module which will do authentication based on user database in mysql? 1. secure whole website not just the cgi scripts. 2. login/logut/session-ids/cookies. thank you. Rajeev

bitwise and help plz

2011-08-14 Thread Rajeev Prasad
in this simple example. i am not able to figure what is the bitwise funtion doing: my @subArray = grep { $_ & 1 } @array; what is the significance of 1 here? is this equivalent? { 1 & $_ } does the EXPR inside grep's curly braces have to produce the grepped text or just a true false value? i

why si this code not working (variable substitution)

2011-08-16 Thread Rajeev Prasad
    foreach $str1 (@arr1){  foreach (@arr2) {  @arr3 = split(/ /,"$_");  print "array = @arr3  element0 = $arr3[0] element1 = $arr3[1]";   #this is just to check, it showing values 0 and 1 as correctly assigned  print "$str1";  } }   arr1 contains lines like: (which will be values of str1 with eac

Re: why si this code not working (variable substitution)

2011-08-17 Thread Rajeev Prasad
b. thx to all coders out there. From: Shlomi Fish To: Rajeev Prasad Cc: Perl Beginners Sent: Wednesday, August 17, 2011 10:54 AM Subject: Re: why si this code not working (variable substitution) Hi Rajeev, On Tue, 16 Aug 2011 17:38:16 -0700 (PDT) Rajeev Prasad wrote: >   >   >

Re: why si this code not working (variable substitution)

2011-08-19 Thread Rajeev Prasad
thx. I agree to suggestion.   just fyi the expanded string is pushed to run in a specialized shell which does not recongnize unix commands.   i am still trying to do it in a simple, safe and (i dont mind lengthy) method. thx. From: Shlomi Fish To: Uri Guttman Cc: Rajeev Prasad ; Perl

regex negative looking up a backtrace

2011-08-24 Thread Ramprasad Prasad
Assume I have to find the first unique character in a string $string = "abtable"; # t is the first unique string I tried using a negative backtrace lookup to get the answer in a single regex ... But something is missing. /(.).(?!\1)/ && print $1; it seems fine ... But doesn't work -- Sent fr

Re: regex negative looking up a backtrace

2011-08-24 Thread Ramprasad Prasad
still does not work $_ = "zzabtable"; /(.)(?!.*\1)/ && print "$1\n"; Output is z On 8/24/11, Chris Charley wrote: >>Assume I have to find the first unique character in a string >> >>$string = "abtable"; >> >># t is the first unique string >> >>I tried using a negative backtrace lookup to get the

OT: Apache vulnerability

2011-08-25 Thread Ramprasad Prasad
Will the apache DOS vulnerability affect servers just running CGI scripts , no php , tomcat etc( usually those are the ones causing all security concerns ) http://www.networkworld.com/news/2011/082411-apache-warns-web-server-admins-250075.html Are there any mitigation scripts

Cannot write to fifo

2011-08-29 Thread Ramprasad Prasad
How can I open multiple FIFO files in perl and print to them simultaneously I tried a simple script does not work #!/usr/bin/perl use strict; use IO::File; $|=1; system("rm -f /tmp/fifo1;mkfifo /tmp/fifo1"); open (OUT,"> /tmp/fifo1") || die; for (0 .. 10){ print "Hi $_\n"; print OUT "H

how to do this in perl (from unix)

2011-09-01 Thread Rajeev Prasad
from linux:   cut -f1,5- -d" " file |grep -v "^0" | sort -n > to_file;   <==this line: how to achieve this in perl?     will below work,  in perl?   if ( ! -s $sourcedir/somefile ){  open(tmpFH,"<","file2");  @tmpAR = ;  close(tmpFH);  push(@tmpAR2,$tmpAR[0],$tmpAR[5..]);#select on c

Re: how to do this in perl (from unix)

2011-09-01 Thread Rajeev Prasad
in array element at ./test.pl line 31. output is not coming correct, only first row of original file is coming.       From: Rajeev Prasad To: Perl Beginners Sent: Thursday, September 1, 2011 6:38 PM Subject: how to do this in perl (from unix) from linux:   cut -f1,5- -d" " file

Re: how to do this in perl (from unix)

2011-09-01 Thread Rajeev Prasad
mpAR = ;  close(tmpFH);  foreach $line (@tmpAR) {   @tmpAR2 = split(/ /,"$line");   $line2 = "$tmpAR[0] $tmpAR[5..-1]";   push(@tmpAR3,$line2);  };  @tmpAR3 = sort(@tmpAR3);  print @tmpAR3;       From: Rajeev Prasad To: Rajeev Prasad ; Perl Beginners Sent: Thursday, September 1

Re: how to do this in perl (from unix)

2011-09-02 Thread Rajeev Prasad
hn W. Krahn To: Perl Beginners Sent: Thursday, September 1, 2011 8:19 PM Subject: Re: how to do this in perl (from unix) John W. Krahn wrote: > Rajeev Prasad wrote: >> from linux: >> >> cut -f1,5- -d" " file |grep -v "^0" | sort -n> to_file;<===

Re: how to do this in perl (from unix)

2011-09-02 Thread Rajeev Prasad
rahn To: Perl Beginners Sent: Friday, September 2, 2011 2:12 PM Subject: Re: how to do this in perl (from unix) Rajeev Prasad wrote: > Thank you John, > > that is almost perfect. only two issues: > > 1.  getting error on sort for each line of input, column 5 onwards is text...: &

parsing and adding back this string

2011-09-02 Thread Rajeev Prasad
friends,   I am now trying to parse this string in this way...   x= could be anything including special character   string = xx:ABC,xx,x,x,x,"x,x,x",x,x,x,"x,x",x   string0=ABC string2="x,x,x" string3="x,x" string1=xx:string0,tt,x,x,x,string2,x,x,x,string3,x   final string is string1

Re: parsing and adding back this string

2011-09-03 Thread Rajeev Prasad
er. From: Rob Dixon To: Perl Beginners Cc: Rajeev Prasad Sent: Saturday, September 3, 2011 4:13 AM Subject: Re: parsing and adding back this string On 02/09/2011 23:33, Rajeev Prasad wrote: > friends, > > I am now trying to parse this string in this way... > > x= could be a

Re: [solved] parsing and adding back this string

2011-09-03 Thread Rajeev Prasad
line,"STRING.$k");     } print @modline; ... ... this replaces fields in quotes with STRING-field number. ____ From: Rajeev Prasad To: Perl Beginners Sent: Saturday, September 3, 2011 10:34 AM Subject: Re: parsing and adding back this string   comma

Re: [solved] parsing and adding back this string

2011-09-04 Thread Rajeev Prasad
s suggested the same. From: Shlomi Fish To: Rajeev Prasad Cc: Perl Beginners Sent: Sunday, September 4, 2011 1:25 AM Subject: Re: [solved] parsing and adding back this string Hi Rajeev, please acknowledge you have received and read this message. On Sat, 3 Sep 2011

form POST string parser

2011-09-06 Thread Rajeev Prasad
hi,   which of the two is better? thx.   $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;   or $value =~ s/%(..)/chr(hex($1))/ge; in both cases if the input string has \ in it, it is being converted to \\     i read... chr =  function is used to convert ASCII or Unicode values into the

Re: form POST string parser

2011-09-07 Thread Rajeev Prasad
Uri,   thx. I like that suggestion, i totally missed that earlier. I will explore cgi module.     From: Uri Guttman To: Rajeev Prasad Cc: Perl Beginners Sent: Tuesday, September 6, 2011 7:24 PM Subject: Re: form POST string parser >>>>> "RP" == Rajeev Prasad writes

Re: form POST string parser

2011-09-07 Thread Rajeev Prasad
how good is: http://search.cpan.org/~zenin/CGI-Validate-2.000/Validate.pm   which is the best module for validating form data?   can i have some pointers to some good examples please?     From: Rajeev Prasad To: Cc: Perl Beginners Sent: Wednesday, September 7, 2011 11:34 AM Subject: Re: form

how good is Net::OpenSSH::Parallel in your experience

2011-09-10 Thread Rajeev Prasad
Hi i am planning to use this module, but its version is 0.11 ! and author says it is beta quality. i am using Net::OpenSSH which is also below ver 1.0 but i have had no issues with it so far. does anyone have any good/bad experience with this module? thank you. Rajeev

Re: how good is Net::OpenSSH::Parallel in your experience

2011-09-11 Thread Rajeev Prasad
nce. Rajeev ____ From: Shlomi Fish To: Paul Johnson Cc: Rajeev Prasad ; Perl Beginners Sent: Sunday, September 11, 2011 1:04 AM Subject: Re: how good is Net::OpenSSH::Parallel in your experience On Sun, 11 Sep 2011 02:32:58 +0200 Paul Johnson wrote: > On Sa

how to use Net::OpenSSH::Parallel

2011-09-14 Thread Rajeev Prasad
trying to use this module now. but i guess i have a very basic issue: currently i am running following in a loop for all hosts (and a inner loop for all commands for a host):     my ($MFSSH) = Net::OpenSSH->new($HOST,                             user => $USER,                             pass

error print on closed file handle

2011-09-14 Thread Rajeev Prasad
plz. advice why am i getting this error?     I have checked: varilable outfile has proper path/filename array allrecords has data     open(OUT_FH,">","$outfile"); print OUT_FH "@allrecords"; close OUT_FH;     error: print() on closed filehandle OUT_FH at /...     thank you.

Re: error print on closed file handle

2011-09-14 Thread Rajeev Prasad
thx. Shawn that fixed the issue. From: Shawn H Corey To: beginners@perl.org Sent: Wednesday, September 14, 2011 8:40 PM Subject: Re: error print on closed file handle On 11-09-14 08:38 PM, Rajeev Prasad wrote: > plz. advice why am i getting this er

running perl script from inside another script & collecting output in array

2011-09-14 Thread Rajeev Prasad
i am doing like below: thecalledscript.pl needs a filename as argument. here is how i am calling it from a thecalling_script: {     local @ARGV;     @ARGV = ("$filename");     require "thecalledscript.pl"; } issue is, the called script prints some filenames after completion to STDOUT. how

Re: running perl script from inside another script & collecting output in array

2011-09-14 Thread Rajeev Prasad
I am now using: my @outfiles = `thecalledscript.pl $filename`; i am getting right results. now question is: is this the best method in terms of efficiency? From: Rajeev Prasad To: Perl Beginners Sent: Wednesday, September 14, 2011 11:07 PM Subject

turnign a script into a perl module

2011-09-15 Thread Rajeev Prasad
Based on earlier suggestion by list-members, I think the best way to run a script inside a script is to turn the inner script into a module of subroutines.   I have few questions:   given a sample script style: __ #!/usr/bin/perl -w use s

website vs web app

2011-09-16 Thread Rajeev Prasad
why do i need a web app? becuase of size of my project? I mean if it is going to be  a very big website with lot of pages and tables etc. should i have a webapp?   apache and cgi wont cut it? (alongwith other technologies used commonly in websites)

Re: website vs web app

2011-09-17 Thread Rajeev Prasad
with apache and php and backend database you can create as much dynamic content as you wish. so why would you need to turn it into a web app? will it not limit its adaptability to future requirements? From: Chris Stinemetz To: Rajeev Prasad Cc: Perl Beginners Sent: Friday, September 16

Re: how to use Net::OpenSSH::Parallel

2011-09-17 Thread Rajeev Prasad
On Sep 14, 11:57 pm, rp.ne...@yahoo.com (Rajeev Prasad) wrote: > trying to use this module now. but i guess i have a very basic issue: > > currently i am running following in a loop for all hosts (and a inner loop > for all commands for a host): > >     my ($MFSSH) = Net::

Re: website vs web app

2011-09-18 Thread Rajeev Prasad
From: Lawrence Statton To: beginners@perl.org Sent: Saturday, September 17, 2011 2:10 PM Subject: Re: website vs web app On 09/16/2011 06:10 PM, Rajeev Prasad wrote: > why do i need a web app? becuase of size of my project? I mean if it is going > to be  a very big website with lot of pag

Re: how to use Net::OpenSSH::Parallel

2011-09-18 Thread Rajeev Prasad
: Saturday, September 17, 2011 12:21 PM Subject: Re: how to use Net::OpenSSH::Parallel On Sep 17, 2011 12:16 PM, "Rajeev Prasad" wrote: > > On Sep 14, 11:57 pm, rp.ne...@yahoo.com (Rajeev Prasad) wrote: > > trying to use this module now. but i guess i have a very basic issue

double substitution

2011-09-19 Thread Rajeev Prasad
$string="alpha number='42'" $string=~s/.*\=// ; $string=~s/\'//g; to get 42 and not '42' can these two substitutions be combined? thank you. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

best AJAX tool/module ?

2011-09-28 Thread Rajeev Prasad
Hello,   what would be the best AJAX module to use with perl?   is cgi::ajax best? I am not using CGI in my project so far so checking if there is anything else out there...   are there any other modules which would be easy (natural fit) to work with data returned in JASON?   please give your exp

Re: best AJAX tool/module ?

2011-09-28 Thread Rajeev Prasad
how about dojo EXT motools  ...etc. ? can these be integrated with perl CGI? From: Jeff Pang To: Rajeev Prasad Cc: "beginners@perl.org" Sent: Wednesday, September 28, 2011 8:35 PM Subject: Re: best AJAX tool/module ? I have been using CGI::Aja

Re: best AJAX tool/module ?

2011-09-29 Thread Rajeev Prasad
lhttp.responseText;     }   } xmlhttp.open("POST","/path/to/perlscript.pl",true); xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlhttp.send(); } test save to file: process data   ____ From: Shlomi Fi

How to get the multiselect select box or checkbox element values WITHOUT using CGI module

2011-09-29 Thread Rajeev Prasad
Hi,   without using CGI.pm how can i collect the values of a multiselect element?   say for e.g.:   < select name="hobbies" id="hobbies" multiple> Reading Books Writing Stories Collecting Coins Cross Stitching Tenis Playing Cricket < /select>   when the form is submitted, i have to get the selected

Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module

2011-09-29 Thread Rajeev Prasad
Rasnita To: Rajeev Prasad ; beginners@perl.org Sent: Friday, September 30, 2011 12:43 AM Subject: Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module From: "Rajeev Prasad" Hi, without using CGI.pm how can i collect the values of a multiselect ele

Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module

2011-09-30 Thread Rajeev Prasad
e.     thx. From: Shawn Wilson To: "beginners@perl.org" Sent: Friday, September 30, 2011 6:26 AM Subject: Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module Rajeev Prasad wrote: >Hi, >  >without using CGI.pm

Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module

2011-09-30 Thread Rajeev Prasad
point of that email was not where validation should happen?? it was sent to find a solution(sample code) to the problem of collecting value of a multi. you missed the point, many people miss the point - it is common. Shawn's whole post was on 'where' to validate. Question was: how to colle

Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module

2011-10-01 Thread Rajeev Prasad
Randal, I thought it would be overkill (RAM, CPU etc.) to use CGI.pm when all i need is to get values out of form-variables. but i am going to settle for CGI::Simple - Original Message - From: Randal L. Schwartz To: beginners@perl.org; Rajeev Prasad Cc: Sent: Friday, September 30

Re: Validating input

2011-10-02 Thread Rajeev Prasad
i think what we all now need is an extensive library of validating routines. use allvalidationcode; ... ... ($new->validate($tn, phonenumber)) ? true : false ...  arguments = varilable, variable type i wish... - Original Message - From: 'lesleyb' To: beginners@perl.org Cc: Sent: S

Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module

2011-10-02 Thread Rajeev Prasad
can not say no to you. i am using CGI::Simple now. i will be moving over to mod_perl later. - Original Message - From: Randal L. Schwartz To: Rajeev Prasad Cc: "beginners@perl.org" Sent: Saturday, October 1, 2011 7:06 AM Subject: Re: How to get the multiselect sel

Determine http or https in CGI perl

2011-10-03 Thread Ramprasad Prasad
In my cgi program .. I want to know if the user is accessing via HTTP or HTTPS. How can I do this ? -- Thanks Ram n

Re: Stop the mail to me

2011-10-07 Thread Ramprasad Prasad
> > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > Read the footer of the mail

LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine]

2011-10-19 Thread Rajeev Prasad
here is my script which is trying to access two websites, from my linux box. i am not able to figure, why am i getting "501 Not Implemented" for any https website. especially when the firefox browser from the same box can access the websites fine using same proxy. proxy does not require userna

Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine]

2011-10-20 Thread Rajeev Prasad
anyone ? plz here is my script which is trying to access two websites, from my linux box. i am not able to figure, why am i getting "501 Not Implemented" for any https website. especially when the firefox browser from the same box can access the websites fine using same proxy. proxy does not

Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine]

2011-10-20 Thread Rajeev Prasad
Hi Gustavo, I tried both, still getting same error. tx. Rajeev From: Gustavo Telly To: Rajeev Prasad Cc: perl list Sent: Thursday, October 20, 2011 11:45 AM Subject: Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine] Hello

Re: how to use Net::OpenSSH::Parallel

2011-11-07 Thread Rajeev Prasad
Subject: Re: how to use Net::OpenSSH::Parallel On Sep 14, 11:57 pm, rp.ne...@yahoo.com (Rajeev Prasad) wrote: > trying to use this module now. but i guess i have a very basic issue: > > currently i am running following in a loop for all hosts (and a inner loop > for all command

is this ssh happenign in parallel?

2011-11-07 Thread Rajeev Prasad
using the async option in Net::OpenSSH can someone help me understand whether in second loop commands are being executed without waiting for them to complete, so that parallelism is achieved as indicated by using async option? if not, then how can we achieve to execute the commands on remote

Re: is this ssh happenign in parallel?

2011-11-08 Thread Rajeev Prasad
Hi, thx for advice, ye sit is part of code, code is working fine. i will fix CAPS on variables soon. quote is fixed. From: Brandon McCaig To: Rajeev Prasad Cc: perl list Sent: Tuesday, November 8, 2011 11:01 AM Subject: Re: is this ssh happenign in parallel

Re: is this ssh happenign in parallel?

2011-11-10 Thread Rajeev Prasad
: Thursday, November 10, 2011 4:51 AM Subject: Re: is this ssh happenign in parallel? On Nov 8, 12:56 am, rp.ne...@yahoo.com (Rajeev Prasad) wrote: > using the async option in Net::OpenSSH > > can someone help me understand whether in second loop commands are being > executed without waiting

Re: is this ssh happenign in parallel?

2011-11-13 Thread Rajeev Prasad
les appending the name of the remote hosts to the local file names. The variables HOST, USER, PORT and LABEL are predefined. ____ From: Rajeev Prasad To: salva ; "beginners@perl.org" Sent: Thursday, November 10, 2011 8:50 AM Subject: Re: is this ssh happenign

Re: is this ssh happenign in parallel?

2011-11-16 Thread Rajeev Prasad
but not working??? @result = $pssh->run; thx. Rajeev From: salva To: beginners@perl.org Sent: Thursday, November 10, 2011 4:51 AM Subject: Re: is this ssh happenign in parallel? On Nov 8, 12:56 am, rp.ne...@yahoo.com (Rajeev Prasad) wrote: > using t

Re: is this ssh happenign in parallel? [SOLVED]

2011-11-19 Thread Rajeev Prasad
uot;$host $line";             }             @CMDRESULT = "";             if (defined $CMDERR ) {print MFOH "$host $CMDERR \n"; $CMDERR = "";}             }         }         undef $MFSSH;     $pm->finish;     } ... ... no need to use ssh::parallel

best module to download files from https

2011-11-21 Thread Rajeev Prasad
hello, what would be the best module to download a file from an https://url ? I am trying to download some files over secured website and am willing to try the most correct (no overkill) module for the job. task: to download files from secured websites, using perl script:  https://myurl/file.

module is installed but getting error

2011-11-22 Thread Rajeev Prasad
getting this error: Can't locate Http/Cookies.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./testscript.pl line 7. module was installed at: #

Re: module is installed but getting error

2011-11-22 Thread Rajeev Prasad
thanks, that was the quickest resolve for me on this LIST ever. thank you! From: Kenneth Wolcott To: Rajeev Prasad Cc: perl list Sent: Tuesday, November 22, 2011 2:35 PM Subject: Re: module is installed but getting error On Tue, Nov 22, 2011 at 12:31

using WWW::Mechanize thru proxy to https(SSL) with website/form authentication, proxy error!!

2011-11-22 Thread Rajeev Prasad
Here is the prob description in short: 1.    post your url in browser: https://myrel/files/file.doc 2.    you get a logon page (URL still looking same) 3.    enter field names:  username/password 4.    press 'ok' button (name = bsubmit)     after successful login: 5.    you get new page:    http

Re: using WWW::Mechanize why am i getting this proxy issue?

2011-11-23 Thread Rajeev Prasad
In my WWW:Mechanize script below, can someone please advice why am i getting proxy issue. when the same proxy is working fine with LWP::UserAgent in a different script. (both scripts are given below) thank you. Rajeev From: Rajeev Prasad To: perl list

How Do I insert a password into a PDF

2011-11-25 Thread Ramprasad Prasad
I am generating pdf files with http://code.google.com/p/wkhtmltopdf/ I want to password protect the PDF's .. How can I do this ?

How do I implement a cyclic array in perl

2011-11-28 Thread Ramprasad Prasad
I have an array of scalars. I want to run a loop like this my @workers = qw ( a b c ); my $MAXCHILD = 20; foreach my $i( 0 .. $MAXCHILD){ run_job($i,$workers[$i++]); } Can I do this ?

extracting email addresses from a file

2011-11-29 Thread Rajeev Prasad
hello,   i am trying to extract email address from a afile, but not quite succesful. here is what i have:   the file: myterqlqt qntmrq Prqtesm qltul qzeez Smqik qltulqzee...@jmqil.com 976665 myterqlqt qntmrq Prqtesm teepqk Mittql teep...@jmqil.com 939383 Onjole qntmrq Prqtesm lmqrqtm Etqrq cont.

  1   2   3   >