RE: 0; and 1;

2005-07-14 Thread arjun.mallik
Hi , I have executed a Perl script from csh[c shell ] and saw that exit is for shell from where it is invoked . Exit 100; at the end is captured by shell. Exit value can be up to 127. But I couldn't get what is ; Stands for. Any one can help here ... please Thanks in advance Arjun Des

Re: how to use command line parameters

2005-07-14 Thread Todd W
"Manish Uskaikar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] command line: $perl man.pl manish perl script #!/usr/bin/perl; ($inputfile) = @ARGS; Could anyone tell me how to accept the commandline parametes this does not seem to work. for simple arguments this works great.

Re: update file

2005-07-14 Thread Wiggins d'Anconia
"Because it's up-side down. Why is that? It makes replies harder to read. Why not? Please don't top-post." - Sherm Pendley, Mac OS X list Rafael Morales wrote: > This the code I use for compare, and works, but I don't know how to update > the file2, I hope you understand me > > #!/usr/bin/perl

Re: update file

2005-07-14 Thread Rafael Morales
This the code I use for compare, and works, but I don't know how to update the file2, I hope you understand me #!/usr/bin/perl use strict; my file1 = "path to file"; my file2 = "path to file"; open(FILE1, "<$file1") || die; # just read open(FILE2, "+<$file2") || die; # for update i

Re: how to use command line parameters

2005-07-14 Thread John Doe
Manish Uskaikar am Donnerstag, 14. Juli 2005 18.21: > command line: > $perl man.pl manish > > perl script: > #!/usr/bin/perl; > ($inputfile) = @ARGS; > > Could anyone tell me how to accept the commandline parametes this does not > seem to work. please put the following lines into every script/modu

Re: update file

2005-07-14 Thread Wiggins d'Anconia
Rafael Morales wrote: > Hi list. > > I have two files which I compare: > first file: > 813|42006|34913|373376|SALAZAR/BERLANGA/JUAN FRANCISCO > K00|42004|99|489545|FAUSTO/PERALTA/PORFIRIO > 900|72059|2031|237648|CAZARES/GUTIERREZ/ALEJANDRO > 211|42005|34913|86258|GUZMAN/DIAZ/CARLOS NOE > > se

update file

2005-07-14 Thread Rafael Morales
Hi list. I have two files which I compare: first file: 813|42006|34913|373376|SALAZAR/BERLANGA/JUAN FRANCISCO K00|42004|99|489545|FAUSTO/PERALTA/PORFIRIO 900|72059|2031|237648|CAZARES/GUTIERREZ/ALEJANDRO 211|42005|34913|86258|GUZMAN/DIAZ/CARLOS NOE second file: 000|42006|34913|373376|SALAZAR/

Re: how to use command line parameters

2005-07-14 Thread Remo Sanges
Remo Sanges wrote: Manish Uskaikar wrote: command line: $perl man.pl manish perl script #!/usr/bin/perl; ($inputfile) = @ARGS; Could anyone tell me how to accept the commandline parametes this does not seem to work. @ARGV and not @ARGS is an array so you have to use it by element. In

Re: how to use command line parameters

2005-07-14 Thread Remo Sanges
Manish Uskaikar wrote: command line: $perl man.pl manish perl script #!/usr/bin/perl; ($inputfile) = @ARGS; Could anyone tell me how to accept the commandline parametes this does not seem to work. @ARGV and not @ARGS is an array so you have to use it by element. In your case the name of

Re: how to use command line parameters

2005-07-14 Thread Remo Sanges
Manish Uskaikar wrote: command line: $perl man.pl manish perl script #!/usr/bin/perl; ($inputfile) = @ARGS; Could anyone tell me how to accept the commandline parametes this does not seem to work. @ARGV and not @ARGS is an array so you have to use it by element. In your case the name of

how to use command line parameters

2005-07-14 Thread Manish Uskaikar
command line: $perl man.pl manish perl script #!/usr/bin/perl; ($inputfile) = @ARGS; Could anyone tell me how to accept the commandline parametes this does not seem to work. Regards, Manish U

Re: Object persistence

2005-07-14 Thread Jeff 'japhy' Pinyan
On Jul 13, Scott R. Godin said: http://www.webdragon.net/miscel/DB.pm I'll check it out. All Subscriber::DB objects would share the DBI object -- there's no need for a billion database handles. ok, so possibly one should do it differently than I have, in my example. Well, look at it thi

[Fwd: LWP]

2005-07-14 Thread David Foley
Guys can some read the below code and tell me what I'm doing wrong? I just want to post some values to a php script. # Setup a user agent for LWP use LWP::UserAgent; my $LWPua = LWP::UserAgent->new; $LWPua->agent("firefox"); #LWP - HTTP request 1 my $LWPreq1a = HTTP::Request->new(POST =>"http:

Re: LWP

2005-07-14 Thread Ing. Branislav Gerzo
David Foley [DF], on Thursday, July 14, 2005 at 15:41 (+0100) has on mind: [we don't know]... David, we all get (I think) only 3 pictures in your mail; if you could, stop sending this (pictures). But main problem is we don't get any text, any question in your mail, so we can't answer. Try to fix

LWP

2005-07-14 Thread David Foley
<>

Re: flock and open files

2005-07-14 Thread mgoland
- Original Message - From: bclark1 <[EMAIL PROTECTED]> Date: Thursday, July 14, 2005 6:48 am Subject: flock and open files > Hi list Hello, > > My colleaque and I have just had a small disagreement with each > other > about file locking and reading / ammending a txt file. > > To up d

HaMakor Prize

2005-07-14 Thread Offer Kaye
http://www.hamakor.org.il/prize.html There are five finalists nominated for the prize, one of them is our very own Gabor Szabo. Congratulations Gabor and good luck! If you are already a member/friend of HaMakor, you should have received an email from them urging you to vote. So go do it :) If yo

Re: mixin object method

2005-07-14 Thread Jeff 'japhy' Pinyan
On Jul 13, Todd W said: I've been trying to undersand what mixins are and at the same time figuring out how to make them easy to use. I just belched out this piece of code, but I dont know if its doing anything special: Perl allows you to call an object from any class to call a method from any

Re: Limit memory used by perl

2005-07-14 Thread Robin
On Thursday 14 July 2005 23:23, Beast wrote: > Is it possible to limit memory used by perl? I don't want perl program > to eat all memory causing OS to freeze. If you're on a UNIX or Linux, look into 'ulimit'. It allows you to set per account (and maybe per-process, I haven't really gotten into it

Re: 0; and 1;

2005-07-14 Thread Adriano Ferreira
On 7/14/05, Beast <[EMAIL PROTECTED]> wrote: > > I coudn't find any reference (yet) the meaning of 0; or 1; in the end of > perl program. In the examples in "perldoc perlmod" you will find 1; # don't forget to return a true value from the file This is needed when you do a 'require' over a Per

Re: Limit memory used by perl

2005-07-14 Thread Beast
Brent Clark wrote: Beast wrote: Hi all, Is it possible to limit memory used by perl? I don't want perl program to eat all memory causing OS to freeze. Hi Maybe you should relook / think yout app and see where you can make it more effienct Yes maybe :-p I have prototype that should

Re: Limit memory used by perl

2005-07-14 Thread Ing. Branislav Gerzo
Beast [B], on Thursday, July 14, 2005 at 18:23 (+0700) typed the following: B> Is it possible to limit memory used by perl? I don't want perl program B> to eat all memory causing OS to freeze. I think, one way how to limit memory usage by perl is measure its memory, you didn't write you OS, so he

Re: Limit memory used by perl

2005-07-14 Thread Brent Clark
Beast wrote: Hi all, Is it possible to limit memory used by perl? I don't want perl program to eat all memory causing OS to freeze. Hi Maybe you should relook / think yout app and see where you can make it more effienct Kind Regards Brent Clark P.s. How much memory is the machine usi

Limit memory used by perl

2005-07-14 Thread Beast
Hi all, Is it possible to limit memory used by perl? I don't want perl program to eat all memory causing OS to freeze. -- --beast -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

flock and open files

2005-07-14 Thread bclark1
Hi list My colleaque and I have just had a small disagreement with each other about file locking and reading / ammending a txt file. To up date a CSV file (it must be quick and / or effient), my colleaque likes to either read the whole file in memory (I dont like this) or open the file and use

mixin object method

2005-07-14 Thread Todd W
I've been trying to undersand what mixins are and at the same time figuring out how to make them easy to use. I just belched out this piece of code, but I dont know if its doing anything special: use warnings; use strict; package MyMixins; sub SomeMethod { my $obj = shift; print( 'a ', ref

call other program

2005-07-14 Thread Ken Killer
If I run the application A from the command line, it will write some output to screen and continue running on the foreground. Now, in my perl tool program, I will call the application A and collect some output of that application A. my perl program will be used on Unix/Linux/Win32 system. My pr