Re: perl daemon program

2008-05-30 Thread John W. Krahn
beast wrote: Hi All, Hello, 1. Does Perl program suitable for long running process or daemon? Yes. 2. Is this considered as daemon program? $ cat myprog.pl while($true) { # do something } $ ./myprog.pl & No. http://www.enderunix.org/documents/eng/daemon.php http://w

perl daemon program

2008-05-30 Thread beast
Hi All, 1. Does Perl program suitable for long running process or daemon? 2. Is this considered as daemon program? $ cat myprog.pl while($true) { # do something } $ ./myprog.pl & Thanks. --budhi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: how to install modules

2008-05-30 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: I tried to install the module plot.pm, There is no CPAN module named plot.pm. There is a module named Chart::Plot, though, with the _file_ Plot.pm. Btw, are GD.pm and libgd available on your system? If not, you'd better install them first, since Chart::Plot is just

how to install modules

2008-05-30 Thread itshardtogetone
Hi, I tried to install the module plot.pm, by following the undermentioned method http://www.base64.co.uk/installing-perl-modules/ but I failed. What have I missed? I am using windowsXP. I am using Perl-5-10. I installed perl in c:\perl\. To install the module plot.pm, using the methods below, I

Re: How perl program execution happened ?

2008-05-30 Thread Chas. Owens
On Fri, May 30, 2008 at 7:12 PM, Jenda Krynicky <[EMAIL PROTECTED]> wrote: snip > compiling the main script. And I did not even mention END{}, CHECK{} > and INIT{} and I believe there are more. snip Yeah, there is UNITCHECK {}, which runs (in LIFO order) when a the unit in which it is defined is f

Re: How perl program execution happened ?

2008-05-30 Thread Jenda Krynicky
From: "Chas. Owens" <[EMAIL PROTECTED]> > On Fri, May 30, 2008 at 4:50 AM, sivasakthi <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > It is a very basic question. But i want clear idea about how the perl > > program execution was happened. I know Perl is a Interpreter language.I > > need more inform

Re: access values in array of hashrefs

2008-05-30 Thread Gunnar Hjalmarsson
Ryan wrote: my $HHs=[ {Rx => 'test', key2 => '1st second key' }, {Rx => '2nd1', key2 => '2nd second key' }, {Rx => '3rd1', key2 => '3rd second key' } ]; say join(', ', @{$HHs->{Rx}}); # say all the values of the 'Rx' key in each element of @$HHs. Is there an easy way to do what I

Re: access values in array of hashrefs

2008-05-30 Thread Rob Dixon
Ryan wrote: > my $HHs=[ > {Rx => 'test', key2 => '1st second key' }, > {Rx => '2nd1', key2 => '2nd second key' }, > {Rx => '3rd1', key2 => '3rd second key' } > ]; > > say join(', ', @{$HHs->{Rx}}); # say all the values of the 'Rx' key in > each element of @$HHs. > > Is there a

access values in array of hashrefs

2008-05-30 Thread Ryan
my $HHs=[ {Rx => 'test', key2 => '1st second key' }, {Rx => '2nd1', key2 => '2nd second key' }, {Rx => '3rd1', key2 => '3rd second key' } ]; say join(', ', @{$HHs->{Rx}}); # say all the values of the 'Rx' key in each element of @$HHs. Is there an easy way to do what I

dependencies, version control and keeping up to date

2008-05-30 Thread axtens
OS: Windows XP Pro G'day everyone, Over the last two years I've written software for my employer in a wide variety of languages including Ada, Assembler, BASIC, C, Delphi, Fortran, FoxPro and Perl. Quite a few of these projects depend on the work of other developers who from time to time update t

Re: Inline C

2008-05-30 Thread sisyphus
On May 30, 2:53 am, [EMAIL PROTECTED] (Rajnikant) wrote: . . > I have configured Inline params link (LIBS,INC etc) and my perl script > compiles fine. > > But when I call library function from perl script, it says 'Undefined > subroutine func_name'. In addition to what Chas recommended, it's a goo

Re: how does file gets send to remote machine using perl

2008-05-30 Thread Richard Lee
Chas. Owens wrote: On Thu, May 29, 2008 at 7:46 PM, Richard Lee <[EMAIL PROTECTED]> wrote: Hi, Someone wrote a perl script which manipulate a file and sent to number of remote system. I ported that exact script to my local machine but I don't see anything going out. Peeking into the script,

Re: cgi ordering a table with sql

2008-05-30 Thread Pat Rice
Thanks Gunnar,Jenda And everyone else that responded, its was great to get it working. Its one of thoese ones were you spend time staring at the code saying that it should work, but it dosent. Thanks :) Pat -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

About Win32::Job package

2008-05-30 Thread Rajnikant
Hello everyone, I have one script which uses Win32::Job package to monitor processes in my module. I need to make changes to that script so as to run it over unix platform. Is there any package which provides similar functionality as that of Win32::Job providing on Windows?? Thanks for your hel

Re: parsing SQL statement

2008-05-30 Thread Matthew Whipple
On Fri, 2008-05-30 at 19:24 +0700, beast wrote: > Anyone having suggestion parsing SQL statement? > > It should able to parse: > > BLA BALA BALA... > > VALUES( > 'abcd efg',,999, 'some \"STRING\" and \'STR2\' STR3' 'abcd, def, fghi' > ) > > I'm using tr and then split by "," but it will

Re: how does file gets send to remote machine using perl

2008-05-30 Thread Chas. Owens
On Thu, May 29, 2008 at 7:46 PM, Richard Lee <[EMAIL PROTECTED]> wrote: > Hi, > > Someone wrote a perl script which manipulate a file and sent to number of > remote system. > I ported that exact script to my local machine but I don't see anything > going out. > Peeking into the script, I see no spe

Re: how does file gets send to remote machine using perl

2008-05-30 Thread Chas. Owens
On Thu, May 29, 2008 at 8:21 PM, Ken Foskey <[EMAIL PROTECTED]> wrote: > On Thu, 2008-05-29 at 19:46 -0400, Richard Lee wrote: > >> Hi, >> >> Someone wrote a perl script which manipulate a file and sent to number >> of remote system. >> I ported that exact script to my local machine but I don't see

Re: How perl program execution happened ?

2008-05-30 Thread Chas. Owens
On Fri, May 30, 2008 at 4:50 AM, sivasakthi <[EMAIL PROTECTED]> wrote: > Hi all, > > It is a very basic question. But i want clear idea about how the perl > program execution was happened. I know Perl is a Interpreter language.I > need more information about whats going there internally . > > could

parsing SQL statement

2008-05-30 Thread beast
Anyone having suggestion parsing SQL statement? It should able to parse: BLA BALA BALA... VALUES( 'abcd efg',,999, 'some \"STRING\" and \'STR2\' STR3' 'abcd, def, fghi' ) I'm using tr and then split by "," but it will fall when seeing comma inside the single quote. Thanks. --budhi --

Re: cgi ordering a table with sql

2008-05-30 Thread Jenda Krynicky
From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> > Jenda Krynicky wrote: > > From: "Pat Rice" <[EMAIL PROTECTED]> > >> > >> my $sth = $dbh->prepare('SELECT * FROM test1 ORDER BY ?'); > > > > Most databases would not let you prepare a statement like this. Most > > often only values may be replaced b

Re: make error for Language::Prolog::Yaswi::Low

2008-05-30 Thread William
- Original Message > From: William <[EMAIL PROTECTED]> > To: Chas. Owens <[EMAIL PROTECTED]> > Cc: beginner perl mailling list > Sent: Friday, May 30, 2008 14:50:40 > Subject: Re: make error for Language::Prolog::Yaswi::Low > > > On May 29, 2008, at 16:08, William wrote: > > > > > Hel

Re: How perl program execution happened ?

2008-05-30 Thread Peter Scott
On Fri, 30 May 2008 14:20:58 +0530, sivasakthi wrote: > It is a very basic question. But i want clear idea about how the perl > program execution was happened. I know Perl is a Interpreter language.I > need more information about whats going there internally . Good question. More than you proba

Re: No such file or directory

2008-05-30 Thread Mimi Cafe
Still cannot see why Perl complains that Could not open file for reading. File or directory does exist. I have modified my script and now using Getopt::Long module instead of the @ARGV variable. Can someone take a look? The script is now run with command line options like this: myscript --master

How perl program execution happened ?

2008-05-30 Thread sivasakthi
Hi all, It is a very basic question. But i want clear idea about how the perl program execution was happened. I know Perl is a Interpreter language.I need more information about whats going there internally . could you explain or direct me right document? Thanks, Siva

Re: Curses - chgat

2008-05-30 Thread Anchal Nigam
Actually, I was able to figure out how to do what I needed to do. I did not realize that after calling chgat one has to call touchwin. Everything works great now. Thanks _Nacho 2008/5/29 Jay Savage <[EMAIL PROTECTED]>: > On 5/28/08, Anchal Nigam <[EMAIL PROTECTED]> wrote: > > Does anyone use c

Re: add @INC directory

2008-05-30 Thread William
> William wrote: > >> William wrote: > >>> Gunnar Hjalmarsson wrote: > You should have read the Install file before installing the new > version. All your questions are answered there; see in particular > > http://search.cpan.org/~rgarcia/perl-5.10.0/INSTALL#Coexistence_with_earli