Debian Codegraph @

test/cmp/Execute.htm

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 <HTML><TITLE>Test for Embperl::Execute</TITLE><BODY>
2 <H1> 1.) Include from memory</H1>
3 <P>Here is some text</P>
4 <H1> 2.) Include from memory with some Embperl code</H1>
5 ^<table> ?<tr> ?<td>a1</td> ?<td>b2</td> ?<td>c3</td> ?</tr> ?</table> ?</P>
6 <H1> 3.) Include from memory with passing of variables</H1>
7 <P>Transfer some vars Some Var !</P>
8 <H1> 4.) Change the variable, but not the code</H1>
9 <P>Transfer some vars Do it again !</P>
10 <H1> 5.) Use @param to pass parameters</H1>
11 <P>Use @param to transfer some data (1 2 3 4) !</P>
12 <H1> 6.) Use @param to pass parameters and return it</H1>
13 <H3> $p[0] is vara and $p[1] is varb<H3><P>Got data in @param (vara varb) !</P><P>Change data in @param to (newA newB) !</P>
14 <H3> $p[0] is now newA and $p[1] is now newB<H3><H1> 7.) Presetup %fdat and @ffld</H1>
15 <P><table><tr><td>fdat</td><td>text</td></tr><tr><td>test</td><td>value</td></tr></table></P>
16 <H1> 8.) Inculde a file</H1>
17
18 Here it starts with some HTML Text<P>
19
20 All values should be undefined at the first include and
21 apear at the second include:
22 <P>
23
24 $a = <BR>
25 $b = <BR>
26 $c = <BR>
27 $d = <BR>
28 $e = <BR>
29
30
31 First of all assign a value:
32 <BR>
33
34 Now we have some 'Umlaute':
35
36
37 Now lets look what we are getting from this:<BR>
38 (this is the value in $a) (this is the value in $a) &auml;&ouml;&uuml;<BR>
39
40 And now a and b together: (this is the value in $a)(this is the value in $a) &auml;&ouml;&uuml;<P>
41
42 Here we have some HTML tags within the perl code, Embperl will delete them!<BR>
43
44 57
45 SELECT * FROM a ORDER BY b USING &lt;; Hi There&gt;
46 Here we have something which looks like a HTML tag, but does not start with<br>
47 a character, Embperl does not change them!<BR>
48
49 SELECT * FROM a ORDER BY b USING &lt;; Hi There&gt;
50 Embperl will also translate HMTL escapes to the right characters i.e. $a &amp;lt; 6 will get the perl expression $a &lt; 6: <BR>
51
52 1
53 Now they should have a value
54
55 $a = (this is the value in $a) <BR>
56 $b = (this is the value in $a) &auml;&ouml;&uuml; <BR>
57 $c = 57 <BR>
58 $d = 1 <BR>
59 $e = 2 <BR>
60
61 <P>Ok.<P>
62
63
64 <H1> 9.) Inculde a file and return output in a scalar</H1>
65 <H3>
66 Here it starts with some HTML Text<P>
67
68 All values should be undefined at the first include and
69 apear at the second include:
70 <P>
71
72 $a = <BR>
73 $b = <BR>
74 $c = <BR>
75 $d = <BR>
76 $e = <BR>
77
78
79 First of all assign a value:
80 <BR>
81
82 Now we have some 'Umlaute':
83
84
85 Now lets look what we are getting from this:<BR>
86 (this is the value in $a) (this is the value in $a) &auml;&ouml;&uuml;<BR>
87
88 And now a and b together: (this is the value in $a)(this is the value in $a) &auml;&ouml;&uuml;<P>
89
90 Here we have some HTML tags within the perl code, Embperl will delete them!<BR>
91
92 57
93 SELECT * FROM a ORDER BY b USING &lt;; Hi There&gt;
94 Here we have something which looks like a HTML tag, but does not start with<br>
95 a character, Embperl does not change them!<BR>
96
97 SELECT * FROM a ORDER BY b USING &lt;; Hi There&gt;
98 Embperl will also translate HMTL escapes to the right characters i.e. $a &amp;lt; 6 will get the perl expression $a &lt; 6: <BR>
99
100 1
101 Now they should have a value
102
103 $a = (this is the value in $a) <BR>
104 $b = (this is the value in $a) &auml;&ouml;&uuml; <BR>
105 $c = 57 <BR>
106 $d = 1 <BR>
107 $e = 2 <BR>
108
109 <P>Ok.<P>
110
111
112 </H3>
113 <H1> 10.) Test $req_rec inside Execute</H1>
114
115 <html>
116 <head>
117 <title>Test for $req_rec in Embperl</title>
118 </head>
119
120 $conf = &lt;undef&gt; <br>
121 ^\$_\[0\] = Embperl::Req=HASH\(0x
122 $_[1] = &lt;undef&gt; <br>
123
124 ^\$rec_rec = Apache2?(::RequestRec)?=SCALAR\(0x
125 ^\$\$rec_rec = -?\d+<br>
126
127 ^Apache->request = Apache2?(::RequestRec)?=SCALAR\(0x
128 ^\$\{Apache->request\} = -?\d+<br>
129
130 ^\${Apache->request} = \$\$req_rec \? yes
131
132 ^test/html/registry/Execute.htm
133 </body>
134 </html>
135
136 <H1> 11.) Done :-)</H1>
137 </body></html>