test13 286 B

12345678910111213141516
  1. #!/usr/bin/perl
  2. #
  3. use strict;
  4. use warnings;
  5. use lib "..";
  6. use Tpl;
  7. my $i;
  8. my $tpl = Tpl->tpl_map("A(f)",\$i);
  9. for($i=0; $i<10.0; $i+=2/3.0) { $tpl->tpl_pack(1); }
  10. my $img = $tpl->tpl_dump();
  11. open TPLXML, "|../tplxml" or die "can't open tplxml: $!";
  12. print TPLXML $img;
  13. close TPLXML;