Help for this page

Select Code to Download


  1. or download this
    use constant {
        THIS => 0, THAT => 1, THEOTHER => 2, ...
    ...
    my @discrete = unpack TEMPL1, read( $file, $size );
    
    print "THIS:", $discrete[ THIS ];
    
  2. or download this
    sub get2DArray {
        my( $x, $y, $templ, $templSize, $fh ) = @_;
    ...
    }
    
    my $array2D = get2DArray( 100, 100, 'N', 4, $fh );