- or download this
#!/usr/bin/perl
...
The datum is [% d %] and the computed
result is '[% object.compute( d ) %]'
[% END %]
- or download this
package Foo;
# save as Foo.pm
...
}
1;
- or download this
$ perl test_tt_method.pl
...
The datum is 3 and the computed
result is 'compute() called with: 3'