in reply to Integer overflow in octal number
is not the Perl way of doing things. One of the magic things about Perl is that @var knows how big it is and there are better iterators than this C style for loop!my @temp_reference_value = ("111", "11111111"); for(my $i=0; $i<=$#temp_reference_value; $i++ ) { ... use $temp_reference_value[$i] here ... }
Is a more Perl way of doing things!foreach my $value (@temp_reference_value) { .. use unsubsripted $value here ... .."off by one" won't happen... a big advantage! }
|
|---|