| # test apparatus for Text::Template module |
| die "This is the test program for Text::Template version 1.46. |
| You are using version $Text::Template::VERSION instead. |
| That does not make sense.\n |
| unless $Text::Template::VERSION == 1.46; |
| $template = new Text::Template TYPE => STRING, SOURCE => q{My process ID is {$$}}; |
| $text = $template->fill_in(OUTPUT => \*O); |
| # (1) No $text should have been constructed. Return value should be true. |
| print +($text eq '1' ? '' : 'not '), "ok $n\n"; |
| # (2) The text should have been printed to the file |
| print +($t eq "My process ID is $$" ? '' : 'not '), "ok $n\n"; |