Re: perl script on remote server

2009-03-02 Thread Rick
Owen wrote: I have a perl script on remote server. I want to launch a expect script(none perl) from local server with arguments and launch perl script on remote server.(arguments will be feed into perl script) I don't know how long perl script will run but I want to scp(using expe

Re: CPAN install module problem

2009-03-02 Thread Rob Dixon
howa wrote: > > Why sometimes I can use a command to install Perl module, e.g. > > perl -MCPAN -e "install Digest::MD5" > > But sometimes can't? > > e.g. > > perl -MCPAN -e "install Archive::Zip" >>> Can't locate object method "install" via package "Archive::Zip" at -e line >>> 1. > > > Are

Re: perl script on remote server

2009-03-02 Thread Owen
> I have a perl script on remote server. > I want to launch a expect script(none perl) from local server with arguments and launch perl script on remote server.(arguments will be feed into perl script) > I don't know how long perl script will run but I want to scp(using expect script from local) th

Re: Is there function to separate print associative array

2009-03-02 Thread diyoPatino
On Mar 1, 2:32 pm, telemac...@arpinum.org (Telemachus) wrote: > On Sun Mar 01 2009 @  1:04, Octavian Râsnita wrote: > > > > > From: "prasath_linux" > >> Hi, > > >> Is there any possible function to print the associative array.  We > >> have print_r() function in PHP to display the associative arra

perl script on remote server

2009-03-02 Thread Rick
I have a perl script on remote server. I want to launch a expect script(none perl) from local server with arguments and launch perl script on remote server.(arguments will be feed into perl script) I don't know how long perl script will run but I want to scp(using expect script from local) the

Re: calling a program from a perl script and redirecting to output to a file

2009-03-02 Thread Thomas Evangelidis
Hi again, I'm digging out this thread cause it seems that my problem has been only partially solved. Indeed "my @myout = `program file`;" can save the output of my program to an array for parsing but this doesn't happen when I use programs with output that cannot be redirected to a file (i.e. erro

RE: Comparing 2 directories of Mail/News single files

2009-03-02 Thread Bob McConnell
On Behalf Of Harry Putnam > > I have a semi-big mess here. > > Never mind how I managed it but let me describe what I want to do and > maybe some kind soul can steer me to something on cpan or just have > some helpful clues. > > I have two directories of news/mail messages containing different >

Comparing 2 directories of Mail/News single files

2009-03-02 Thread Harry Putnam
I have a semi-big mess here. Never mind how I managed it but let me describe what I want to do and maybe some kind soul can steer me to something on cpan or just have some helpful clues. I have two directories of news/mail messages containing different number of files. However I expect there is f

Re: CPAN install module problem

2009-03-02 Thread howa
On Mar 2, 1:10 am, r...@i.frys.com (Ron Bergin) wrote: > Since you're using double quotes, I assume that you're on Windows.  I > suspect it has something to do with the way cmd is parsing the command > before passing it to perl. no matter I use single or double quote (on Linux), both does not work

Perl IO::Socket::INET vs. netcat

2009-03-02 Thread Peter Daum
Hi, I am struggling with a mysterious problem sending data to (HP jetdirect) printers; The printers accepts postscript/pcl data on port 9100. Sending the data with: cat data.ps | netcat printer 9100 always works. When sending the data with a Perl program however, in some cases the printers fo

Re: word similarity measure

2009-03-02 Thread Dr.Ruud
Susan wrote: If my data looks like this: word 1: 100101 101102102 102106106 word 2: 101104 106110113 129131148 word 3: 101153 175180381 word 4: 106110 113122131 137142148 word 5: 120165 1

Re: Accepting default value for user input

2009-03-02 Thread Telemachus
On Mon Mar 02 2009 @ 7:54, Sarsamkar, Paryushan wrote: > Ohh ... sorry ... after rethinking over it ... I think it converts the > $normal to lower case before comparison Right, which is a standard and smart thing to do since you can't count on your users to correctly type 'y-e-s'. Damn users.

RE: Accepting default value for user input

2009-03-02 Thread Sarsamkar, Paryushan
Ohh ... sorry ... after rethinking over it ... I think it converts the $normal to lower case before comparison Please ignore my mail earlier Thanks, Paryushan -Original Message- From: Sarsamkar, Paryushan [mailto:psars...@ptc.com] Sent: Monday, March 02, 2009 6:18 PM To: beginners@per

RE: Accepting default value for user input

2009-03-02 Thread Sarsamkar, Paryushan
Ok thanks. But is lc needed here? I tried without using lc it works fine because output of comparison will be always 1 if I am not wrong. last if lc $normal eq 'yes' or lc $normal eq 'no'; Thanks, Paryushan -Original Message- From: Gunnar Hjalmarsson [mailto:nore...@gunnar.cc] Sent:

Re: Accepting default value for user input

2009-03-02 Thread Gunnar Hjalmarsson
Sarsamkar, Paryushan wrote: I did not understand meaning of this line :( below. I only understood that it will exit while loop if the input has either yes or no. But then what is " grep { lc $normal eq $_ } "? last if grep { lc $normal eq $_ } 'yes', 'no'; It's another way to say: last if

Re: word similarity measure

2009-03-02 Thread Telemachus
On Fri Feb 27 2009 @ 8:24, Susan wrote: > If my data looks like this: > > word 1: 100101 101102102 102106106 > word 2: 101104 106110113 129131148 > word 3: 101153 175180381 > word 4: 106110 113122131 137

Attepmt quiz to check you knowledge on PERL

2009-03-02 Thread Praveen Kumar
http://qmantraz.com/page/quiz#quiz/6 Bollywood news, movie reviews, film trailers and more! Go to http://in.movies.yahoo.com/

Re: Stopping variable interpolation/evaluation

2009-03-02 Thread pushkar . naik
> > Use print(), not printf(). > > -- > Gunnar Hjalmarsson > Email:http://www.gunnar.cc/cgi-bin/contact.pl- Hide quoted text - > > - Show quoted text - Thanx Gunnar and Octavian, print() and chomp() together did the job just fine. ~Pushkar -- To unsubscribe, e-mail: beginners-unsubscr...@perl.o

Re: How to install Win32 module...

2009-03-02 Thread sanket
On Feb 25, 2:41 pm, spitt...@jhmi.edu (Steve Pittman) wrote: > I downloaded and unzipped the TAR file...how do I install it...directions say > copy into lib which didn't work > > thanks in advance Hi, Download C++ compiler & (nmake or dmake). Extract tar files. navigate to the directory. perl

Re: CPAN install module problem

2009-03-02 Thread Ron Bergin
On Feb 27, 9:03 pm, howac...@gmail.com (Howa) wrote: > Hi, > > Why sometimes I can use a command to install Perl module, e.g. > > perl -MCPAN -e "install Digest::MD5" > > But sometimes can't? > > e.g. > > perl -MCPAN -e "install Archive::Zip" > > >> Can't locate object method "install" via package