Re: Getting Started

2001-06-23 Thread Ron Smith
You can find a suitable 'perl' binary to install on your system at 'activestate.com'. Also, I've found the following two books a great deal of help: Perl A Beginner's Guide R. Allen Wyke & Donald B. Thomas Published by: Osborne Learning Perl by: Randal L. Schwartz & Tom Christiansen Published

Re: Net::Telnet

2001-06-23 Thread Matt Cauthorn
Here's some code that works well for us to bounce some apache instances across a cluster(obviously truncated). Notice how you stuff STDOUT from your remote call into an array that you print for output locally. This module rocks, and is (for us) blistering fast and super flexible. Also, I used Te

Date::Manip - Date calculation

2001-06-23 Thread Adrian Harper
Hi everyone, Im very new to Perl and am trying to write a web front end to an existing MDB that we use at work. One of the things I am wanting to do, is calculate the age of records in the MDB, each record has a text field containing the date and time in the following format "2001-06-12 15:47:0

Re: compiling _statically linked_ perl

2001-06-23 Thread Paul Johnson
On Sat, Jun 23, 2001 at 02:50:33PM +0200, Pozsar Balazs wrote: > > > > So my big question is: how can i compile a statically linked perl. > > Try sticking -Uusedl on your Configure line. > > Okay, the solution is: -Uusedl -Aldflags=-static > > Is it possible to compile a perl, which > - static

Re: Failed in package programme, how do I use package and object?

2001-06-23 Thread Me
Good job I decided to write this as two posts. > Most of what you wrote is redundant in this > particular case. You could have written: (I was just refering to the constructor, btw.) > package foo; > sub bar { bless \$qux }; > . > . > package waldo; > $emerson = foo->new

Re: Failed in package programme, how do I use package and object?

2001-06-23 Thread Me
> I'm try my best And you had 99% of it right. > package pt; > use 5.; > $a="ok"; #for public using > $b="It's"; > > # I don't know why put the newsubroutine in this package, > # perhaps, it is a constructer, I copy from PERL's manual, > # but it seem don't do anything. Most of what you w

Failed in package programme, how do I use package and object?

2001-06-23 Thread tobobo
hi,all, I'm try my best to write a programme in using package structure. But I don't have any experience at the side, I packed all common subroutines in a package including all relative variables for these subroutines and my main programme, It seem wrong, however, all these variables couldn't

statically linked perl with XML::Parser

2001-06-23 Thread Pozsar Balazs
> > So my big question is: how can i compile a statically linked perl. > Try sticking -Uusedl on your Configure line. Okay, I can compile a statically linked perl with: -Uusedl -Aldflags=-static on the Configure line. But: Is it possible to compile a perl, which - statically linked, by the mean

Re: Filehandles

2001-06-23 Thread Jeff 'japhy' Pinyan
On Jun 23, Me said: >> I want STDOUT to be sent to a FILESHANDLE. I have a script writing >output >> DISPLAY..But I wanna this to be going into a file through FILEHANDLES >.. >> >> Ur Help is Highly APPRECIATED > >open(STDOUT, ">foo") or die "can't redirect STDOUT: $!"; It's probably easier

Re: Want a program!!!

2001-06-23 Thread Brett W. McCoy
On Sat, 23 Jun 2001, suman sanyal wrote: > I want to write a perl program.which will automatically execute > itself 5 secs after its creationwhat should i doany good > resources... Are you trying to write a worm? -- Brett http://www.chapelperilous.

Re: creating ,interacting with a process on a remote machin

2001-06-23 Thread Brett W. McCoy
On Sat, 23 Jun 2001, VeeraRaju_Mareddi wrote: > Is there any Module/Function that creates, interact with the sockets on > remote machine?. I am not able to find this function in IO::Socket::INET. > Actually my program should create a socket on a remote machine ,Creating a > process and Interactin

Re: compiling _statically linked_ perl

2001-06-23 Thread Pozsar Balazs
> > So my big question is: how can i compile a statically linked perl. > Try sticking -Uusedl on your Configure line. Okay, the solution is: -Uusedl -Aldflags=-static Is it possible to compile a perl, which - statically linked, by the meaning that it doesn't require /lib/ld-linux.so.2 - i

Re: Want a program!!!

2001-06-23 Thread Nigel Wetters
err... sounds viral explain the problem in more general terms. >>> "suman sanyal" <[EMAIL PROTECTED]> 06/23/01 12:37pm >>> I want to write a perl program.which will automatically execute itself 5 secs after its creationwhat should i doany good resources... suman sanyal -- __

Want a program!!!

2001-06-23 Thread suman sanyal
I want to write a perl program.which will automatically execute itself 5 secs after its creationwhat should i doany good resources... suman sanyal -- ___ FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup FREE PC-to

Re: creating ,interacting with a process on a remote machin

2001-06-23 Thread Jos I. Boumans
to do what? - Original Message - From: "VeeraRaju_Mareddi" <[EMAIL PROTECTED]> To: "Jos I. Boumans" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, June 23, 2001 11:38 AM Subject: RE: creating ,interacting with a process on a remote machin > Dear Jos > Thanks for Replying.I

RE: creating ,interacting with a process on a remote machin

2001-06-23 Thread VeeraRaju_Mareddi
Dear Jos Thanks for Replying.I want to install a software on a remote machine with interaction from my desk top...That's why I told all this story..Could you please suggest me. Thnax and Regards Raju -- From: Jos I. Boumans [SMTP:[EMAIL PROTECTED]] Sent: Saturd

Re: Filehandles

2001-06-23 Thread Jos I. Boumans
if you want an explicit file handle, you'll have to do something like the following: open O, ">out.txt"; print O "whatever it is you need to print\n"; however, you can just reopen STDOUT and point it to a log file or something rather then the default (display) So i'm not sure i see the problem in

Re: creating ,interacting with a process on a remote machin

2001-06-23 Thread Jos I. Boumans
I'm not quite sure what you want to do from the below description, but what you probably want to do is have 2 IO::SOCKET scripts running, one on the host machine, one on the client one accepting connections, one making them, and thus talking to eachother... so please be more descriptive if we are

Re: Re[2]: A better way?

2001-06-23 Thread Jos I. Boumans
Ehm, you cant *just* use & and expect all to stay the same... concider the following: if you use a & you dont need to predeclare a sub if you want to leave of the parenthesis for an argument list: ie: &foo#calls sub foo with no arguments foo #calls sub foo with no arguments IF y

Re: How do I determine number of matches in a regex?

2001-06-23 Thread Randal L. Schwartz
> "iansmith" == iansmith <[EMAIL PROTECTED]> writes: iansmith> I had read this, but before Randals message, I didn't realize iansmith> WHY there is no opposite to scalar. The POD says their isn't, iansmith> but doesn't really explain why. In fact, it goes on to say how iansmith> to simulat

Re: Filehandles

2001-06-23 Thread Me
> I want STDOUT to be sent to a FILESHANDLE. I have a script writing output > DISPLAY..But I wanna this to be going into a file through FILEHANDLES .. > > Ur Help is Highly APPRECIATED Well I'll SEE if I can HELP YOU. open(STDOUT, ">foo") or die "can't redirect STDOUT: $!"; HOPE THIS HELPS.

Re: creating ,interacting with a process on a remote machin

2001-06-23 Thread Me
> Is there any Module/Function that [...] interact with the > sockets on remote machine?. Yes, IO::Socket::INET. > I am not able to find this function in IO::Socket::INET. use IO::Socket; $socket = IO::Socket::INET->new(); print $socket "question\n"; $answer = <$socket>;

Re: Filehandles

2001-06-23 Thread David Monarres
If you are using print then just include the FILEHANDLE before the message (make sure that you open the file first) ie: print FILE "hello"; mainly this means that most things that spit out messages toward STDOUT as a default. print "hello"; is the same as: print STDOUT "hello"; I hope that