Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 2846c2b6fe3a964eff4f3b3c12eee018 > files > 623

apache-HTML-Embperl-2.2.0-8mdv2010.0.i586.rpm


<html>
<head>
<title>Some Plain tests for Embperl</title>
</head>

<body>

[$VAR $vara $varb $c $]

Here it starts with some HTML Text<P>


All values should be undefined:

$vara = [+ $vara +] <BR>
$varb = [+ $varb +] <BR>
$c = [+ $c +] <BR>
$d = [+ $d +] <BR>
$e = [+ $e +] <BR>


First of all assign a value:
[- $vara = '(this is the value in $vara)' -] <BR>

Now we have some 'Umlaute':


[- $varb = "$vara &auml;&ouml;&uuml;" -]

Now lets look what we are getting from this:<BR>
[+ $vara +] [+ $varb +]<BR>

And now a and b together: [+ "$vara$varb" +]<P>

Here we have some HTML tags within the perl code, Embperl will delete them!<BR>

[+ $c = <BR> 6 + 17 <font size="3"> * 3 +]

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>

[- $e = 2 -]
[+ $d = $e &lt; 6 +]

Now they should have a value

$vara = [+ $vara +] <BR>
$varb = [+ $varb +] <BR>
$c = [+ $c +] <BR>
$d = [+ $d +] <BR>
$e = [+ $e +] <BR>

<P>Ok.<P>


</body>
</html>