On Jul 23, Mads N. Vestergaard said:
I'm trying to check weather a variable is an integer, i have tried the
following:
use Math::BigRat;
my $x = 42;
print "$x is an integer\n" if $x->is_int();
Using Math::BigRat doesn't automatically make numbers into objects. You'd
have to say
my $x =
I'm running some very long tests using Test::More and after ~20K
iterations I am getting ~200MB of memory usage.
It's really slowing things down.
Are there any pointers on how to track down or eliminate memory leakage?
Anything at all would probably help some.
--
To unsubscribe, e-mail: [EM
me again ;)
i don't even know if this is going to be possible, but i'll ask anyway.
my perl program runs as a constant process in the background. is there
anyway i can make another program/script send a HUP, or any kind of, signal
to the process, to say, force a re-read of a database or something,
Hi everybody,
I'm trying to check weather a variable is an integer, i have tried the
following:
use Math::BigRat;
my $x = 42;
print "$x is an integer\n" if $x->is_int();
But it doesn't work, it gives me the error:
Can't call method "is_int" without a package or object reference at
test.pl l
On Jul 23, Tom Allison said:
Jeff 'japhy' Pinyan wrote:
The /o modifier tells the internal regex compiler that, after this regex has
been compiled 'o'nce, it is never to be compiled again. "Well, what good is
that?" you ask. For your average regex, there is absolutely no difference,
no cha
Jeff 'japhy' Pinyan wrote:
On Jul 23, Tom Allison said:
($lineExtract, $_) = /(^\w+\.dat\|)(.+)$/o;
(I like to add the regex option 'o' at the end to improve performance.)
This is a common misconception. The purpose and effects of the /o
modifier (as well as the /s and /m modifiers) are u
Joel Divekar wrote:
Hi All
We have a windoz based file server with thousand of
user accounts. Each user is having thousand of files
in his home directory. Most of these files are
duplicate / modified or updated version of the
existing files. These files are either .doc or . xls
or .ppt files whi
On Jul 23, dan said:
i wasn't planning on using ? to match a single character, i figured that
would be getting too complicated. how would that be done anyway? i must say
my regex skills aren't very good :/
The ? metacharacter would map to Perl's . regex metacharacter.
$temp1 =~ s{([^\w\s]
On Jul 23, Tom Allison said:
($lineExtract, $_) = /(^\w+\.dat\|)(.+)$/o;
(I like to add the regex option 'o' at the end to improve performance.)
This is a common misconception. The purpose and effects of the /o
modifier (as well as the /s and /m modifiers) are unclear to a lot of Perl
prog
this worked a treat. thank you so much.
i wasn't planning on using ? to match a single character, i figured that
would be getting too complicated. how would that be done anyway? i must say
my regex skills aren't very good :/
dan
"Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> wrote in message
news:[EMA
Also...
You can use Digest::MD5 module and create an MD5 signature for comparing the
files that have the same size.
Teddy
- Original Message -
From: "Xavier Noria" <[EMAIL PROTECTED]>
To: "beginners perl"
Sent: Saturday, July 23, 2005 10:46 AM
Subject: Re: File Management
> On Jul
On Jul 23, 2005, at 7:56, Joel Divekar wrote:
We have a windoz based file server with thousand of
user accounts. Each user is having thousand of files
in his home directory. Most of these files are
duplicate / modified or updated version of the
existing files. These files are either .doc or . xl
12 matches
Mail list logo