Help for this page

Select Code to Download


  1. or download this
    # Tested with TinyPerl 5.8 on Windows XP and Perl 5.004 on DOS.
    
  2. or download this
    my $REF = ReadBMP('D:\\DESKTOP\\mandel3.bmp', 3);
    ReduceColorDistribution($REF);
    my $HTML = Canvas2HTML($REF);
    CreateFile('D:\\DESKTOP\\TESTING.HTM', $HTML);
    exit;
    
  3. or download this
    use strict;
    
    ...
        $foo = 17;      # Oops! Forgot "my"
        ...
    }
    
  4. or download this
    MAIN:       # Label (not needed, just for documentation)
    {
    ...
        CreateFile('D:\\DESKTOP\\TESTING.HTM', $HTML);
        exit;   # Not really needed either
    }
    
  5. or download this
    if ($ERR > 5) { undef $HEADER; return 0; }
    
  6. or download this
    sub ReadBMP
    {
        ...
    }
    
  7. or download this
    while ($H--)
    {