Tests for Embperl - Importing from a Perl module
[-
use lib qw{ . } ;
use subimp ;
-]
First sub:
[- tfirst -]
Second sub:
params in main = [+ "@_" +]
[- tsecond (1, 2, 3) -]
[- @cell = (['a1', 'a2'], ['b1', 'b2']) -]
And now a table splitted into several subs:
1 | 2> |
[- tabcell (\@cell) -]
And done!