Bob Showalter wrote:
Scott R. Godin wrote:
under what circumstances is the CGI.pm's STORE autoloaded method
called?
is it used only when you assign values to the object, or is it only
used when receiving values (or multi-values) from the webserver query?
It is part of the tied hash
Scott R. Godin wrote:
[snip]
So if I were to say, override it thusly:
package CGI;
sub STORE {
my $self = shift;
my $tag = shift;
my $vals = shift;
#my @vals = index($vals,\0)!=-1 ? split(\0,$vals) : $vals;
my @vals = @{$vals};
On Thu, 14 Jul 2005, Beast wrote:
I coudn't find any reference (yet) the meaning of 0; or 1; in the end
of perl program.
In the absense of an explicit return statement, a block of Perl code
will return the value of the last statement to any calling code.
For an ordinary script, this doesn't
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
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 ',
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
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]
http://learn.perl.org/ http://learn.perl.org/first-response
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
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
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
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 Perl
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)
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
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
- 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 date a
attachment: blue-nod.jpg
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
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
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
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
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
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
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.
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:
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/module you
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 it
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
use
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. If
28 matches
Mail list logo