All values should be undefined:
$a = [+ $a || '' +]
$b = [+ $b || '' +]
$c = [+ $c || '' +]
$d = [+ $d || '' +]
$e = [+ $e || '' +]
ARRAY @d = [+ do { my @tmp1 = @d; "@tmp1" } +] num = [+ @d +]
ARRAY @x = [+ do { my @tmp1 = %x; "@tmp1" } +] num = [+ @x +]
HASH %a = [+ do { my @tmp1 = %a; my @tmp11 = sort @tmp1 ; "@tmp11" } +] num = [+ 0+keys %a +]
HASH %y = [+ do { my @tmp2 = %y; my @tmp21 = sort @tmp2 ; "@tmp21" } +] num = [+ 0+keys %y +]
First of all assign a value:
[- $a = '(this is the value in $a)' -]
[- @d = (1, 2, 3) ; @x = (9, 8, 7) -]
[- %a = (1 => 'a', 2 => 'b', 3 => 'c') ; %y = (9 => 'x', 8 => 'y', 7 => 'z') -]
Now we have some 'Umlaute':
[- $b = "$a äöü" -]
Now lets look what we are getting from this:
[+ $a +] [+ $b +]
ARRAY @d = [+ "@d" +] num = [+ @d +]
ARRAY @x = [+ "@x" +] num = [+ @x +]
HASH %a = [+ do { my @tmp1 = %a; my @tmp11 = sort @tmp1 ; "@tmp11" } +] num = [+ 0+keys %a +]
HASH %y = [+ do { my @tmp2 = %y; my @tmp21 = sort @tmp2 ; "@tmp21" } +] num = [+ 0+keys %y +]
And now a and b together: [+ "$a$b" +]
Here we have some HTML tags within the perl code, Embperl will delete them!
[+ $c =
6 + 17 * 3 + 0 +]
[+ "SELECT *
FROM a ORDER BY b USING <; Hi There>" +]
Here we have something which looks like a HTML tag, but does not start with
a character, Embperl does not change them!
[+ "SELECT * FROM a ORDER BY b USING <; Hi There>" +]
Embperl will also translate HMTL escapes to the right characters i.e. $a < 6 will get the perl expression $a < 6:
[- $e = 2 # here is a perl comment -]
[+ $d = $e < 6 +]
Now they should have a value
$a = [+ $a +]
$b = [+ $b +]
$c = [+ $c +]
$d = [+ $d +]
$e = [+ $e +]
Input Separator = [+ ord($/) +]
[-=pod
blabla
=cut-]
[-
=pod
blabla
=cut
-]
Ok.