2
0

test17 378 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/perl
  2. #
  3. use strict;
  4. use warnings;
  5. use lib "..";
  6. use Tpl;
  7. my $pwd = `pwd`;
  8. chomp $pwd;
  9. my $tmp1 = "$pwd/$0_1.out";
  10. my ($i,$j)=(1,ord('a'));
  11. my $tpl = Tpl->tpl_map("S(ic)",\$i, \$j);
  12. $tpl->tpl_pack(0);
  13. $tpl->tpl_dump($tmp1);
  14. ($i,$j)=(-9,"x");
  15. my $tpl2 = Tpl->tpl_map("S(ic)",\$i,\$j);
  16. $tpl2->tpl_load($tmp1);
  17. $tpl2->tpl_unpack(0);
  18. $j = chr($j);
  19. print "$i,$j\n";