Debian Codegraph @

test/html/varerr.htm

raw
1
2 <html>
3 <head>
4 <title>Some Plain tests for Embperl</title>
5 </head>
6
7 <body>
8
9 [$VAR $vara $varb $c $]
10
11 Here it starts with some HTML Text<P>
12
13
14 All values should be undefined:
15
16 $vara = [+ $vara +] <BR>
17 $varb = [+ $varb +] <BR>
18 $c = [+ $c +] <BR>
19 $d = [+ $d +] <BR>
20 $e = [+ $e +] <BR>
21
22
23 First of all assign a value:
24 [- $vara = '(this is the value in $vara)' -] <BR>
25
26 Now we have some 'Umlaute':
27
28
29 [- $varb = "$vara &auml;&ouml;&uuml;" -]
30
31 Now lets look what we are getting from this:<BR>
32 [+ $vara +] [+ $varb +]<BR>
33
34 And now a and b together: [+ "$vara$varb" +]<P>
35
36 Here we have some HTML tags within the perl code, Embperl will delete them!<BR>
37
38 [+ $c = <BR> 6 + 17 <font size="3"> * 3 +]
39
40 Embperl will also translate HMTL escapes to the right characters i.e. $vara &amp;lt; 6 will get the perl expression $vara &lt; 6: <BR>
41
42 [- $e = 2 -]
43 [+ $d = $e &lt; 6 +]
44
45 Now they should have a value
46
47 $vara = [+ $vara +] <BR>
48 $varb = [+ $varb +] <BR>
49 $c = [+ $c +] <BR>
50 $d = [+ $d +] <BR>
51 $e = [+ $e +] <BR>
52
53 <P>Ok.<P>
54
55
56 </body>
57 </html>