Debian Codegraph @

test/html/importmodule.htm

raw
1 <html>
2 <head>
3 <title>Tests for Embperl - Importing subs from a Perl module</title>
4 </head>
5
6
7 <body>
8
9 <h1>Tests for Embperl - Importing from a Perl module</h1>
10
11 [!
12 use lib qw{ . } ;
13 use subimp ;
14 !]
15
16 First sub:
17 [- tfirst -]
18
19 Second sub:
20 params in main = [+ "@_" +]
21
22 [- tsecond (1, 2, 3) -]
23
24
25 [- @cell = (['a1', 'a2'], ['b1', 'b2']) -]
26
27 And now a table splitted into several subs:
28
29 <table>
30 <tr><th>1</th><th>2></th></tr>
31 <tr>
32 [- tabcell (\@cell) -]
33 </tr>
34 </table>
35
36 And done!
37
38
39
40 </body>
41 </html>