Help for this page

Select Code to Download


  1. or download this
    sub Min { my $min=shift; $_<$min and $min=$_ for @_; $min }
    sub Max { my $max=shift; $_>$max and $max=$_ for @_; $max }
    ...
            Min($P{Page}+$P{NextPages}, ($P{Records}-1)/$P{Count}+1) ];
        return \%P;
    }
    
  2. or download this
    # these two commands are equal :-)
    $nav=CalcNavigation({Records=>100, From=>1, Count=>10, NextPages=>2});
    ...
        'NextPages'    =>     2,
        'PrevPages'    =>    10,
        };
    
  3. or download this
    =item B<CalcNavigation>( \%nav )
    
    ...
    =back
    
    =cut