| 1 |
<html> |
| 2 |
<head> |
| 3 |
<title>Tests for Embperl - Importing subs 2</title> |
| 4 |
</head> |
| 5 |
|
| 6 |
|
| 7 |
<body> |
| 8 |
|
| 9 |
<h1>Tests for Embperl - Importing subs</h1> |
| 10 |
|
| 11 |
[! Execute({inputfile => 'subimp.htm', import => 1}) !] |
| 12 |
|
| 13 |
|
| 14 |
Second sub: |
| 15 |
[- tsecond -] |
| 16 |
|
| 17 |
First sub: |
| 18 |
[- tfirst -] |
| 19 |
|
| 20 |
[- @cell = (['2a1', '2a2'], ['2b1', '2b2']) -] |
| 21 |
|
| 22 |
And now a table splitted into several subs: |
| 23 |
|
| 24 |
<table> |
| 25 |
<tr><th>1</th><th>2></th></tr> |
| 26 |
<tr> |
| 27 |
[- tabcell (\@cell) -] |
| 28 |
</tr> |
| 29 |
</table> |
| 30 |
|
| 31 |
And done! |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
</body> |
| 36 |
</html> |