home *** CD-ROM | disk | FTP | other *** search
/ isnet Internet / Isnet Internet CD.iso / prog / hiz / 09 / 09.exe / adynware.exe / perl / lib / integer.pm < prev    next >
Encoding:
Perl POD Document  |  1999-12-28  |  577 b   |  32 lines

  1. package integer;
  2.  
  3. =head1 NAME
  4.  
  5. integer - Perl pragma to compute arithmetic in integer instead of double
  6.  
  7. =head1 SYNOPSIS
  8.  
  9.     use integer;
  10.     $x = 10/3;
  11.  
  12. =head1 DESCRIPTION
  13.  
  14. This tells the compiler that it's okay to use integer operations
  15. from here to the end of the enclosing BLOCK.  On many machines, 
  16. this doesn't matter a great deal for most computations, but on those 
  17. without floating point hardware, it can make a big difference.
  18.  
  19. See L<perlmod/Pragmatic Modules>.
  20.  
  21. =cut
  22.  
  23. sub import {
  24.     $^H |= 1;
  25. }
  26.  
  27. sub unimport {
  28.     $^H &= ~1;
  29. }
  30.  
  31. 1;
  32.