Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
If I'm not using bignum, bigint, or biganything; what kind of limits should I expect my scalars to have?
Do they have limits?
EXAMPLE!! (insert your own impatience)
#!/usr/bin/perl -w use strict; my $bestCounterEver = 0; my $nTimes = 10000000; my $lamePrintCounter = $nTimes; print "COUNTY!\n"; while (1) { $SIG{INT} = \&lazy; $bestCounterEver += 100000; $lamePrintCounter--; if ($lamePrintCounter < 0) { $lamePrintCounter = $nTimes; print "still going: $bestCounterEver\n"; } } sub lazy { print "Wait longer next time!!\n"; print "Final Count = $bestCounterEver \n"; exit(0); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Highest scalar = ???
by BrowserUk (Patriarch) on Oct 01, 2007 at 16:03 UTC | |
by ikegami (Patriarch) on Oct 01, 2007 at 16:29 UTC | |
by halley (Prior) on Oct 01, 2007 at 16:30 UTC | |
|
Re: Highest scalar = ???
by jwkrahn (Abbot) on Oct 01, 2007 at 17:28 UTC | |
|
Re: Highest scalar = ???
by samtregar (Abbot) on Oct 01, 2007 at 17:21 UTC | |
by ikegami (Patriarch) on Oct 01, 2007 at 18:37 UTC | |
by samtregar (Abbot) on Oct 01, 2007 at 20:00 UTC | |
by ikegami (Patriarch) on Oct 01, 2007 at 20:27 UTC | |
|
Re: Highest scalar = ???
by mr_mischief (Monsignor) on Oct 01, 2007 at 16:23 UTC | |
|
Re: Highest scalar = ???
by swampyankee (Parson) on Oct 01, 2007 at 22:02 UTC | |
by DJ Purrperl (Novice) on Oct 03, 2007 at 05:14 UTC |