| 1 |
|
| 2 |
Here it starts with some HTML Text<P> |
| 3 |
|
| 4 |
All values should be undefined at the first include and |
| 5 |
apear at the second include: |
| 6 |
<P> |
| 7 |
|
| 8 |
$a = [+ $a || '' +] <BR> |
| 9 |
$b = [+ $b || '' +] <BR> |
| 10 |
$c = [+ $c || '' +] <BR> |
| 11 |
$d = [+ $d || '' +] <BR> |
| 12 |
$e = [+ $e || '' +] <BR> |
| 13 |
|
| 14 |
|
| 15 |
First of all assign a value: |
| 16 |
[- $a = '(this is the value in $a)' -] <BR> |
| 17 |
|
| 18 |
Now we have some 'Umlaute': |
| 19 |
|
| 20 |
|
| 21 |
[- $b = "$a äöü" -] |
| 22 |
|
| 23 |
Now lets look what we are getting from this:<BR> |
| 24 |
[+ $a +] [+ $b +]<BR> |
| 25 |
|
| 26 |
And now a and b together: [+ "$a$b" +]<P> |
| 27 |
|
| 28 |
Here we have some HTML tags within the perl code, Embperl will delete them!<BR> |
| 29 |
|
| 30 |
[+ $c = 6 + 17 * 3 +] |
| 31 |
[+ "SELECT * <br> FROM a ORDER BY b USING <; Hi There>" +] |
| 32 |
|
| 33 |
Here we have something which looks like a HTML tag, but does not start with<br> |
| 34 |
a character, Embperl does not change them!<BR> |
| 35 |
|
| 36 |
[+ "SELECT * FROM a ORDER BY b USING <; Hi There>" +] |
| 37 |
|
| 38 |
Embperl will also translate HMTL escapes to the right characters i.e. $a &lt; 6 will get the perl expression $a < 6: <BR> |
| 39 |
|
| 40 |
[- $e = 2 -] |
| 41 |
[+ $d = $e < 6 +] |
| 42 |
|
| 43 |
Now they should have a value |
| 44 |
|
| 45 |
$a = [+ $a +] <BR> |
| 46 |
$b = [+ $b +] <BR> |
| 47 |
$c = [+ $c +] <BR> |
| 48 |
$d = [+ $d +] <BR> |
| 49 |
$e = [+ $e +] <BR> |
| 50 |
|
| 51 |
<P>Ok.<P> |
| 52 |
|