Re: not able to send a cookie to my ajax call:

2016-06-14 Thread Rajeev Prasad via beginners
thank you.I was able to resolve. It was the header data type issue. The AJAX call was expecting JSON output, and the script was sending text/html. I have now resolved this issue. I will update the question on website soon. thank you. Rajeev On Monday, June 13, 2016 4:51 AM, Shlomi Fish

not able to send a cookie to my ajax call:

2016-06-12 Thread Rajeev Prasad via beginners
hello perl Gurus, I have put the same question on stack exchange, but getting no response... I am NOT able to send the cookie in response to AJAX call to my webpage. I am following it exactly as the manual says, putting the cookie in the header of "$q", but it is not working :(the javascript code

series of numbers to range notation

2014-01-07 Thread Rajeev Prasad
perl code to represent the series of numbers as a range? thank you. Rajeev

remotely operate web page/website

2013-11-25 Thread Rajeev Prasad
. thanks in advance. Rajeev

Re: formatting a list

2013-09-30 Thread Rajeev Prasad
thank you Shawn. this works nicely for me. From: Shawn H Corey To: beginners@perl.org Cc: Rajeev Prasad Sent: Saturday, September 28, 2013 8:49 AM Subject: Re: formatting a list On Fri, 27 Sep 2013 22:59:01 -0700 (PDT) Rajeev Prasad wrote: > i w

formatting a list

2013-09-27 Thread Rajeev Prasad
hello, following is obtained by concatenating 3 values using an underscore to produce a list: abc_12_4567 xy4z_xtr4_sdf PQRSDR_xcvf_scc234 i want them to look neat, something like this: where they look in line. I do not know before hand how long each word would be abc124567 xy4z___

Unable to understanding map usage

2013-07-24 Thread Rajeev Kilaru
Hello, I am looking at the following code someone wrote and I have difficultly in understand map usage. Can somebody please explain how does the following code work? print OUT2 join( ',', map { $_=~ s/\"/\'/g; "\"$_\"" } @data ) Thanks, Rajeev Kilar

setting expect buffer size when reading/writing to PIPE

2013-06-28 Thread Rajeev Prasad
how to set length of read buffer when expect object is a PIPE. my ($pty, $pid) = $ssh->open2pty($command); my $exp = Expect->init($pty); _now how can i set the buffer size on this object? when i print following from script, both of the following values are 0 $exp->match_max() $exp->max_accum()

Re: printing content of a pipe

2013-06-28 Thread Rajeev Prasad
i see, it changes 'destination' for the rest of the perl script, you mean. i have another question which i will submit in new thread. From: Shlomi Fish To: Rajeev Prasad Cc: perl list Sent: Friday, June 28, 2013 11:45 AM Subject: Re: printing

Re: printing content of a pipe

2013-06-28 Thread Rajeev Prasad
28, 2013 4:48 AM Subject: Re: printing content of a pipe Hi Rajeev, see below for some comments on your code. On Thu, 27 Jun 2013 15:07:50 -0700 (PDT) Rajeev Prasad wrote: > in the below code I am not able to print anything except whatever is in the > $pty.  I want to print LINE_START

printing content of a pipe

2013-06-27 Thread Rajeev Prasad
in the below code I am not able to print anything except whatever is in the $pty.  I want to print LINE_START: in the beginning of each line of the output, but it does not print that, it only prints what the output of the exceuted command produced. why is that so?     while(<$pty>) {          

Re: Perl and Web Development

2013-06-10 Thread Rajeev Prasad
in my opinion it is better to use CSS/HTML and javascript to handle frontend work and perl doing all the backend processing, only generating json data for frontend to parse and display. perl is very good and most things have not changed much: like handling time, text/numeric data, text/database

Re: Email::Sender::Simple how to set priority?

2013-04-26 Thread Rajeev Prasad
using outlook and these are working with same sendmail binary from shell script. From: Rob Dixon To: perl list Cc: Rajeev Prasad Sent: Friday, April 26, 2013 9:21 PM Subject: Re: Email::Sender::Simple how to set priority? On 27/04/2013 00:21, Rajeev

Email::Sender::Simple how to set priority?

2013-04-26 Thread Rajeev Prasad
following is still coming out as normal priority email. use strict; use warnings; use Email::MIME; use Email::Sender::Simple qw(sendmail); my @mesg=qw(fox jumps over the); my $subject='IMP mesg'; my $message = Email::MIME->create(   header_str => [     From    => '',     To      => '<'y...@a

Re: [BackupPC-users] BackupPC future development (was: Backuppc and windows)

2013-04-06 Thread Rajeev Prasad
Has anyone shared this thread on perl mailing list yet? since we are looking for a perl devloper, i thought i would put it on the perl list to see if we get any response. thx. Rajeev - Original Message - From: "backu...@kosowsky.org" To: Tyler J. Wagner Cc: "Genera

Re: Email::Mime not able to send array in mesg body

2013-02-20 Thread Rajeev Prasad
thx. I did achieve it by using join... join('',@array) From: David Precious To: beginners@perl.org Sent: Wednesday, February 20, 2013 1:01 PM Subject: Re: Email::Mime not able to send array in mesg body On Wed, 20 Feb 2013 10:41:51 -0800 (P

Email::Mime not able to send array in mesg body

2013-02-20 Thread Rajeev Prasad
hello follwoing code is sending empty email body. I am trying to send HTML content in body of mesg. It works if I use a string instead of array. I tried sending reference to @email_body, but It simply printed array_ref in body. modules used are: use Email::MIME; use Email::Sender::Simple qw(sen

Re: ok how about this: source code compressor

2013-02-18 Thread Rajeev Prasad
hmm i thought, it would load the whole script in memory and then execute. so a smaller file size will take less RAM... thx. From: Brian Fraser To: Rajeev Prasad Cc: perl list Sent: Friday, February 15, 2013 7:56 PM Subject: Re: ok how about this: source

ok how about this: source code compressor

2013-02-15 Thread Rajeev Prasad
it not only decreases the size, to load in RAM, also make it 'little harder' for cocky-novices to steal the tricks (perl guru's anyway dont care). http://www.stunnix.com/prod/po/  (binary not present to download??) http://blueboxtech.co.uk/perlplexity/  (failed to remove trailing comments...) ht

Re: obfuscating code

2013-02-14 Thread Rajeev Prasad
From: Paul Johnson To: John SJ Anderson Cc: beginners@perl.org Sent: Wednesday, February 13, 2013 5:50 PM Subject: Re: obfuscating code On Tue, Feb 12, 2013 at 03:18:51PM -0800, John SJ Anderson wrote: > > On Feb 12, 2013, at 3:05 PM, Kevin Walzer wrote: > > > Does Perl have the equivale

Re: obfuscating code

2013-02-12 Thread Rajeev Prasad
sorry, idea is dropped. From: Rajeev Prasad To: perl list Sent: Tuesday, February 12, 2013 11:01 AM Subject: obfuscating code freinds, what is the advice just for obfuscating code? platform is solaris. ty.

obfuscating code

2013-02-12 Thread Rajeev Prasad
freinds, what is the advice just for obfuscating code? platform is solaris. ty.

confusion about modules for email

2013-02-08 Thread Rajeev Prasad
experience. ty. Rajeev

expect module $expect->log_file(\&captureexpectout $arg2 $arg3);

2013-02-05 Thread Rajeev Prasad
w but I got error...   $expect->log_file(\&captureexpectout($_,$myarg));   I was assuming that the data from expect call is contained in $_   but i get nothing. (seems like it passes blank to subroutine...)   pl advice. Rajeev

Re: Net::Openssh disable password based login

2013-01-27 Thread Rajeev Prasad
nevermind. i figured it need to give this option: -o => 'PasswordAuthentication=no', ____ From: Rajeev Prasad To: perl list Sent: Sunday, January 27, 2013 1:10 PM Subject: Re: Net::Openssh disable password based login forgot to mention th

Re: Net::Openssh disable password based login

2013-01-27 Thread Rajeev Prasad
forgot to mention that, i have no control over ssh server (to add 'PasswordAuthentication no' option to server config) ____ From: Rajeev Prasad To: perl list Sent: Sunday, January 27, 2013 1:09 PM Subject: Net::Openssh disable password based login

Net::Openssh disable password based login

2013-01-27 Thread Rajeev Prasad
hand (I dont know but the option 'ConnectTimeout 30' does not seem to have any impact). so how can i make this an strictly key based login? so that if key based login fails it does not try any further. pl advice. ty. Rajeev

need suggestion stat vs Devl::Size for checking size very very frequently

2013-01-25 Thread Rajeev Prasad
                                last;                             } else {                             print $tmp_fh @tmp_arr;                             undef(@tmp_arr);                             }                         }                         }                     if(tell($rout) != -1){close $rout;} Please advice any suggestion for increasing efficiency of this code. thank you. Rajeev

how to break out of Net::OpenSSH $ssh->pipe_out($cmd); call

2013-01-25 Thread Rajeev Prasad
I am running a command on remote host to grab some data, i want to stop at a certain size. the following seem to be working (file size does not grow beyond 1MB on disk), but the process keeps running till i guess everything coming from that 'pipe' is finished. how can i stop/break/close the pip

Re: Net::Openssh not fetching data

2012-12-17 Thread Rajeev Prasad
thx a lot Slava, it works!   lastly, does the pipe_out does not 'store' data in RAM - and streams straight to disk? like collecting response from 'capture' in an array?   rgds, Rajeev   From: Salvador Fandino To: Rajeev Prasad Cc: perl

Net::Openssh not fetching data

2012-12-17 Thread Rajeev Prasad
rectly (after logging in), takes only about 30 seconds.   also, when we run from my localhost (bash shell) ssh "$CMD" > local.file.save it completes within 2 minutes...   please advice.   ty. Rajeev

Re: tt hash values not printing....

2012-10-30 Thread Rajeev Prasad
friends, i have resolved this now. I changed the way i was building the hash value: and then it worked fine. $my_hash->{$index} = [$val1, $val2]; - Original Message - From: Rajeev Prasad To: perl list Cc: Sent: Tuesday, October 30, 2012 6:17 PM Subject: tt hash values

tt hash values not printing....

2012-10-30 Thread Rajeev Prasad
Hello, Since I did not get any reply in last few hours. I am now posting this question to the perl list too. I apologize if you mind. thank you. starting with a hash ref my $my_hash = {}; building the hash in a loop...           push(@tmp_arr,$val1);           push(@tmp_arr,$val2);  

Re: simplestic perl module

2012-10-16 Thread Rajeev Prasad
parent 'Exporter'; our @EXPORT_OK = qw(myroutine); file: perlscript.pl #!/usr/bin/perl use strict; use warnings; use Template; use Mymodule qw(myroutine); my ($output)=myroutine($input); - Original Message - From: Shlomi Fish To: Rajeev Prasad Cc: perl list Sent: Tuesda

Parallel::ForkManager and Net::OpenSSH to handle timeout

2012-10-15 Thread Rajeev Prasad
ostKeyChecking=no',                                                      -o => 'ConnectTimeout 30'],                                 );     ...then some useful work thru ssh     ...     undef $ssh;     $pm->finish; } ty. Rajeev

simplestic perl module

2012-10-09 Thread Rajeev Prasad
I want to execute this routine which is to be supplied two(sometimes three) string variables. and will return two string variables. I want to keep this routine in a separate file. how to do it? something like: ($var1,$var2) = routine I am either looking to keep this routine in a file which

Re: expect.pm not recognising match string

2012-09-30 Thread Rajeev Prasad
ultimately salva's code at loc: http://cpansearch.perl.org/src/SALVA/Net-OpenSSH-0.58_04/sample/expect.pl is working. I will try to experiment more with it. From: Rajeev Prasad To: Salvador Fandino Cc: David Precious ; perl list Sent: Friday, Sept

sudo module; how to use on remote system

2012-09-30 Thread Rajeev Prasad
Hello Joe, How to use your module on a remote system? module is not installed on remote system, but on my local machine. i am usinf net::openssh to connect to remote system. tx. Rajeev

Re: expect.pm not recognising match string

2012-09-28 Thread Rajeev Prasad
sudo_path -k");                 my @output = $ssh->capture({stdin_data => "$PASS"},   $sudo_path,   "-p",'', "$cmd");                 print "  result=@output \n"; From: Salvador

Re: expect.pm not recognising match string

2012-09-06 Thread Rajeev Prasad
no because first i have to sudo to some other ID and then run commands. From: David Precious To: Rajeev Prasad Cc: perl list Sent: Thursday, September 6, 2012 4:57 AM Subject: Re: expect.pm not recognising match string On Wed, 5 Sep 2012 11:27:28

expect.pm not recognising match string

2012-09-05 Thread Rajeev Prasad
estions/12272191/perl-expect-running-30-commands-remotely/12273286 unfortunately no help yet. thank you. Rajeev

moving from 32bit to 64bit linux perl support?

2012-08-29 Thread Rajeev Prasad
version available? lets say on ubuntu 64 bit server? similarly for other modules... pl advice. thank you. Rajeev

many people using same file

2012-08-28 Thread Rajeev Prasad
can multiple users run the same script, at same time, which opens couple of files (file handles) for "reading" only? I would assume yes, but I want to know for sure. thx in advance. Rajeev

Re: re-reading from already read file handle

2012-08-20 Thread Rajeev Prasad
Rob, yes you are right. I apologize if that is not liked. I will not do so in future. I will atleast wait a couple of hours, before i go to any other forum. your help is valuable to me. ty. Rajeev From: Rob Dixon To: Rajeev Prasad ; perl list Sent: Monday

Re: re-reading from already read file handle

2012-08-20 Thread Rajeev Prasad
PM Subject: Re: re-reading from already read file handle On Aug 20, 2012, at 1:39 PM, Rajeev Prasad wrote: > thank you. seek did the job. > > by the way can this be made any better? > > just want to find out in how many records string was found: > >            my $count=0

Re: re-reading from already read file handle

2012-08-20 Thread Rajeev Prasad
($line=~m/\"$str\"/) {$count++;}        #in the file $str string would be in quotes             } From: Andy Bach To: Rajeev Prasad Cc: perl list Sent: Monday, August 20, 2012 2:10 PM Subject: Re: re-reading from already read file handle

re-reading from already read file handle

2012-08-20 Thread Rajeev Prasad
as if the control within file is at the EOF and will not iterate from first line in the file is this default behaviour? how to work around this? file is big and I do not want to keep in memory as array. so is my only option is to close and open the file again? pl advice. ty. Rajeev

Re: subroutine in seperate file, question

2012-08-11 Thread Rajeev Prasad
Thank you. I am confused about how to send variables to this ext.pl and get values (scalars) back into main.pl another confusion is from web the cgi will run, i want to check cookies in external subroutine file and redirect to some website based on some condition, or gives some values back to c

Re: subroutine in seperate file, question

2012-08-10 Thread Rajeev Prasad
I mean to ask, wether they will clash with the same loaded modules loaded in calling script? From: "pa...@riseup.net" To: Rajeev Prasad Cc: perl list Sent: Friday, August 10, 2012 9:05 PM Subject: Re: subroutine in seperate file, question Yes, t

subroutine in seperate file, question

2012-08-10 Thread Rajeev Prasad
et? anyone know?   ty. Rajeev

DBIx schema loader (dump schema using make_schema_at) wierd behaviour

2012-08-07 Thread Rajeev Prasad
Hello,   am I missing anything? when I dump schema of my database using schema loader's make_schema_at. Some .pm file names under Result corrosponding to folders have names chnaged! they do not match to table names!!   e.g. table name costlycookies shows up as Costlycooky.pm !!! another table ch

Re: how to set session variable (not session cookie) using perl CGI

2012-08-07 Thread Rajeev Prasad
Thank you Ron and David. - Original Message - From: Ron Bergin To: Rajeev Prasad Cc: perl list Sent: Tuesday, August 7, 2012 9:36 PM Subject: Re: how to set session variable (not session cookie) using perl CGI -- Rajeev Prasad wrote: > I am using CGI.pm on my website, bu

how to set session variable (not session cookie) using perl CGI

2012-08-07 Thread Rajeev Prasad
client, based on some conditions in the logic?   ty. Rajeev -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path')

2012-06-28 Thread Rajeev Prasad
authentication? 2. since the module insist on having a .ssh folder in home directory(/var/www), of web user (www-data on linux), how safe is it to have a .ssh folder under /var/www ?? anyone know? ty. Rajeev - Original Message - From: Rajeev Prasad To: Shlomi Fish Cc: perl list Sent: Thursday

Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path')

2012-06-28 Thread Rajeev Prasad
- Original Message - From: Shlomi Fish To: Rajeev Prasad Cc: perl list Sent: Thursday, June 28, 2012 12:46 PM Subject: Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path') Hi Rajeev, On Thu, 28 Jun 2012 10:00:08 -0700 (PDT) Rajeev Pra

net::openssh error in CGI: Invalid or bad combination of options ('key_path')

2012-06-28 Thread Rajeev Prasad
hello can anyone help? following is failing: my $ssh = Net::OpenSSH->new($host,         user => "abc123",         ctl_dir => "/home/openssh_lib_home",         key_path => "/home/openssh_lib_home/.ssh/",         master_opts => [-o => 'StrictHostKeyChecking=no',                         -o => 'Conne

Re: Net::OpenSSH failing in CGI

2012-06-27 Thread Rajeev Prasad
 -o => 'ConnectTimeout 60'],         ); # ls -l /home|grep open drwxrwsr-x  2 www-data www-data 4096 2012-06-27 21:54 openssh_lib_home - Original Message - From: Rajeev Prasad To: perl list Cc: Sent: Wednesday, June 27, 2012 4:13 PM Subject: Net::OpenSSH failing in CGI

Net::OpenSSH failing in CGI

2012-06-27 Thread Rajeev Prasad
my $ssh = Net::OpenSSH->new($host,         user => "abc123",         ctl_dir => "/var/www/mysite.com/www/openssh_lib_home/"         ); ssh is not happening, when i catch the error, i get below: error:  ctl_dir /var/www/mysite.com/www/openssh_lib_home/ is not secure folder is : $ ls -l /var/ww

file rows to colum using Text::CSV ?

2012-06-20 Thread Rajeev Prasad
i wrote this code which turns rows into columns from a csv file (here you see as 'in' array) I am finding it difficult to figure to do this using Text::CSV ??? can anyone suggest how to convert this to use Text::CSV ? thank you. Rajeev #!/usr/bin/perl use warnings; use strict; #

how to appending to expect output ?

2012-06-19 Thread Rajeev Prasad
ning of each line of output from running the command, but i am not sure how to catch the output of each command before it goes into log file. ty Rajeev -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

bug in net::openssh? or what am i doing wrong?

2012-06-06 Thread Rajeev Prasad
http://cpan.uwinnipeg.ca/htdocs/Net-OpenSSH/Net/OpenSSH.html#scp_put     following is failing with an error when $folder is not defined. is that correct? i think it should assume $folder as null variable and continue to save in home folder on destination???   $scpresult = $ssh->scp_put($file,$fol

Re: moving from ubuntu 10.04 to 12.04. how to have same PERL modules there?

2012-06-05 Thread Rajeev Prasad
get system and open some tool like synaptic (for ubuntu) and install all those modules. :) I will try that too.   ty. Rajeev From: Shawn H Corey To: beginners@perl.org Sent: Tuesday, June 5, 2012 3:29 PM Subject: Re: moving from ubuntu 10.04 to 12.04. how to have

moving from ubuntu 10.04 to 12.04. how to have same PERL modules there?

2012-06-05 Thread Rajeev Prasad
?   thank you. Rajeev

has anyone used perl CGI scripts with Hiawatha web server?

2012-03-03 Thread Rajeev Prasad
Anyone has any experience to share about implementing perl CGI scripts on Hiawatha web server? ty. R 

Re: need guidance on encode JSON and sorting

2012-02-05 Thread Rajeev Prasad
d e.g.: 2012-01-20 22:24:36   value is some text - Original Message - From: Rajeev Prasad To: perl list Cc: Sent: Sunday, February 5, 2012 10:20 PM Subject: Re: need guidance on encode JSON and sorting I tried below but getting err:     my $json = JSON::XS->new;     $json

Re: need guidance on encode JSON and sorting

2012-02-05 Thread Rajeev Prasad
I tried below but getting err:     my $json = JSON::XS->new;     $json->get_canonical;     $return_json_text = $json->encode $tmp_hash; Scalar found where operator expected atscript.pl line 80, near "->encode $tmp_hash" ??? - Original Message - From: Rajeev

need guidance on encode JSON and sorting

2012-02-05 Thread Rajeev Prasad
->get_canonical on JSON's page but not sure hot use it as i do not have $json or such object created. Also I am assuming it would be sorted on key field of the JSON hash. ty. Rajeev -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.

DBIx::Class add rows to table, confusion in perldoc example....

2012-02-04 Thread Rajeev Prasad
t; table with three columns: "albumid", "artist", and "title" so what does year and label stand for? sorry i am confused. do i have to run update after running create? ty. Rajeev -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Net::Openssh and sudo?

2012-01-28 Thread Rajeev Prasad
: beginners@perl.org Sent: Sunday, January 22, 2012 11:08 AM Subject: Re: Net::Openssh and sudo? On 01/20/2012 08:10 PM, Rajeev Prasad wrote: > > > hello, > > using Net::Openssh how can i use sudo to become some other user (say root) on > a target machine and then execute a ser

Re: Net::Openssh and sudo? SOLVED

2012-01-20 Thread Rajeev Prasad
uot;ls","who am i","id","whoami"); foreach my $cmd (@cmdlist){ $expect->expect(2,     [ qr/runasroot:/ => sub { shift->send("$pass1\n");} ],  #use pass2 if using only su     [ qr/Sorry/   => sub { die "Login failed

Re: Net::Openssh and sudo? made some progress: version 3

2012-01-20 Thread Rajeev Prasad
su     [ qr/Sorry/   => sub { die "Login failed" } ],                 [qr/#/ => sub { shift->send("ls -l\n"); exp_continue;}]                 ) or die "___Timeout!"; __END__ From: Rajeev Prasad To: perl l

Re: Net::Openssh and sudo?

2012-01-20 Thread Rajeev Prasad
asroot:/ => sub { shift->send("$pass1\n");} ],  #use pass2 if using only su     [ qr/Sorry/   => sub { die "Login failed" } ]); $expect->send("\n\n\n"); $expect->expect(2,[ qr/#/ => sub { shift->send("ls -l\n");} ])  #use

Net::Openssh and sudo?

2012-01-20 Thread Rajeev Prasad
. thank you. Rajeev -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: 32 bitx Hex point code to 24 bit (8-8-8) point code

2012-01-09 Thread Rajeev Prasad
ction by specifying    int($myarr[4])  but i still get same error ?? From: John W. Krahn To: Perl Beginners Sent: Monday, January 9, 2012 4:57 PM Subject: Re: 32 bitx Hex point code to 24 bit (8-8-8) point code Rajeev Prasad wrote: > Hello John, >

Re: supressing error message Use of uninitialized value in concatenation....

2012-01-09 Thread Rajeev Prasad
  10:53 AM, "Rajeev Prasad" scribbled: > Hello, > > I have a lot of fields being concatenated to form a string and sometimes the > values are empty, so i am getting this error: > > Use of uninitialized value in concatenation (.) or string at ./script.pl line > 144,

Re: rows to columns issue

2012-01-09 Thread Rajeev Prasad
  print $aoa[$y][$x]." ";     }     print "\n"; } - Original Message - From: Jim Gibson To: perl list Cc: Sent: Monday, January 9, 2012 3:29 PM Subject: Re: rows to columns issue On 1/9/12 Mon  Jan 9, 2012  1:08 PM, "Rajeev Prasad" scribbled: > &g

rows to columns issue

2012-01-09 Thread Rajeev Prasad
Hello, I tried following code but it is not working. I have a file with many lines(records) where field separator is space. I want to convert rows to columns, something like... source: a b c d 1 2 3 4 output: a 1 b 2 c 3 d 4 Here is my test code: It is not working :( #!/usr/bin/perl u

supressing error message Use of uninitialized value in concatenation....

2012-01-09 Thread Rajeev Prasad
Hello, I have a lot of fields being concatenated to form a string and sometimes the values are empty, so i am getting this error: Use of uninitialized value in concatenation (.) or string at ./script.pl line 144, <$IN_FH> line 1. how can i suppress this? my logic flow: $string1 = "a,b,c,d,e

Re: 32 bitx Hex point code to 24 bit (8-8-8) point code

2012-01-09 Thread Rajeev Prasad
Hex point code to 24 bit (8-8-8) point code Rajeev Prasad wrote: > > Hello, Hello, > I am trying to convert 32 bitx Hex point code to 24 bit (8-8-8) point > code. What does the input look like and what do you expect the corresponding output to look like? > i tried to use below

32 bitx Hex point code to 24 bit (8-8-8) point code

2012-01-08 Thread Rajeev Prasad
Hello, I am trying to convert 32 bitx Hex point code to 24 bit (8-8-8) point code. i tried to use below script from net, but due to limited understanding of perl and above script, I was not able to resolve my problem. Can someone please help me resolve my issue? thank you. Rajeev #!/usr

tinyMCE as web editor for editing code?

2012-01-02 Thread Rajeev Prasad
Hello, Has anyone ever used, tinyMCE as web based editor (to run inside the browser) to edit the perl/php/shell scripts on the server? I am looking for some direction and advice? thank you. Rajeev -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Rajeev Prasad
and more interest towards php etc... ty. Rajeev From: Shlomi Fish To: Brendan Cc: Rajeev Prasad ; Mark Tiesman ; "beginners@perl.org" Sent: Thursday, December 15, 2011 2:45 PM Subject: Re: Guidance for a New Programmer/Perl User Hi Rajeev, On T

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Rajeev Prasad
Mark, i think with an eye on future, you should start by reading Rakudo etc. i.e. perl6 From: Mark Tiesman To: beginners@perl.org Sent: Thursday, December 15, 2011 9:54 AM Subject: Guidance for a New Programmer/Perl User Hi all.  I recently started a job

Re: extracting email addresses from a file

2011-11-29 Thread Rajeev Prasad
thx Sheppy, good enough for me. i am a beginner in perl. From: Sheppy R To: Rob Coops Cc: Rajeev Prasad ; perl list Sent: Tuesday, November 29, 2011 9:54 AM Subject: Re: extracting email addresses from a file Couldn't you just use the non-white

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.

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

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: 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

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: #

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.

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

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?

2011-11-13 Thread Rajeev Prasad
Salva, can you explain how to use variable expansion in your written module Net::Openssh and Net::Openssh::Parallel ? I want to be able to specify userid and password for the parallel ssh sessions using Net::Openssh::Parallel ... thank you. Rajeev Variable expansion This module activates

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-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

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: 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

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: 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

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

  1   2   3   >