Works like a charm.
Thank you all.
On Tue, 2005-12-27 at 14:44 +0100, John Doe wrote:
> Alon Marx am Dienstag, 27. Dezember 2005 14.30:
> > Seems like a good solution for my needs, but how do I use it in a perl
> > program instead of an inline command?
> >
> > For example, if I try to set a variab
Alon Marx am Dienstag, 27. Dezember 2005 14.30:
> Seems like a good solution for my needs, but how do I use it in a perl
> program instead of an inline command?
>
> For example, if I try to set a variable with such a value:
> $a = (1<<$Config{ivsize}*8-1)-1;
>
> I get an error "Global symbol "%Conf
Seems like a good solution for my needs, but how do I use it in a perl
program instead of an inline command?
For example, if I try to set a variable with such a value:
$a = (1<<$Config{ivsize}*8-1)-1;
I get an error "Global symbol "%Config" requires explicit package name
at"
Thanks,
Alon
On
I don't think so
- Original Message -
From: "Alon Marx" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, December 27, 2005 5:28 PM
Subject: maximum int value
Is there a constant or a definition for a maximum number in perl? And
the same question for a minimum value?
Alon
--
To unsubscribe, e
On 12/27/05, Alon Marx <[EMAIL PROTECTED]> wrote:
> Is there a constant or a definition for a maximum number in perl? And
> the same question for a minimum value?
This may work for you
the biggest unsigned integer
$ perl -e 'print ~0'
18446744073709551615 # 64-bit integers
the maximum signed in
On Dec 27, 2005, at 12:58, Alon Marx wrote:
Is there a constant or a definition for a maximum number in perl? And
the same question for a minimum value?
You have some constants available through the %Config hash in Config.pm:
% perl -MConfig -le 'print "$_ = $Config{$_}" for grep /size$/, key