%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
#!perl # # test apparatus for Text::Template module # still incomplete. # use Text::Template; 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 Aborting" unless $Text::Template::VERSION == 1.46; print "1..1\n"; $n=1; $template = q{ This line should have a 3: {1+2} This line should have several numbers: { $t = ''; foreach $n (1 .. 20) { $t .= $n . ' ' } $t } }; $templateOUT = q{ This line should have a 3: { $OUT = 1+2 } This line should have several numbers: { foreach $n (1 .. 20) { $OUT .= $n . ' ' } } }; # Build templates from string $template = new Text::Template ('type' => 'STRING', 'source' => $template) or die; $templateOUT = new Text::Template ('type' => 'STRING', 'source' => $templateOUT) or die; # Fill in templates $text = $template->fill_in() or die; $textOUT = $templateOUT->fill_in() or die; # (1) They should be the same print +($text eq $textOUT ? '' : 'not '), "ok $n\n"; $n++; # Missing: Test this feature in Safe compartments; # it's a totally different code path. # Decision: Put that into safe.t, because that file should # be skipped when Safe.pm is unavailable. exit;