3
<title>Tests for Embperl - Embperl sub Metacommand</title>
9
[###### first sub #####]
12
*txt* <h2>Here goes some normal html text <h2>
17
[###### second sub #####]
20
*perl_code* Here comes some perl:
22
*perl_code* [- $foo = 'Hello world' -]
24
*perl_code* foo = [+ $foo +]<br>
25
*perl_code* testdata = [+ $testdata +]<br>
29
[###### main page #####]
32
<h1>Tests for Embperl - Embperl sub Metacommand</h1>
34
[- $testdata = 'abcd' -]
36
Now we call the first sub via Execute:
38
[- Execute ('#txt') -]
40
And now the second via Execute:
42
[- Execute ('#perl_code') -]
44
Now we call the first sub via Perl:
48
And now the second via Perl:
52
-> Second time, other order:
54
And now the second via Perl:
58
Now we call the first sub via Perl:
62
-> And Execute again, but other order
64
And now the second via Execute:
66
[- Execute ('#perl_code') -]
68
Now we call the first sub via Execute:
70
[- Execute ('#txt') -]