File: test_expr6.tmpl

package info (click to toggle)
libhtml-template-pro-perl 0.9524-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,512 kB
  • sloc: ansic: 1,841; perl: 1,474; yacc: 404; pascal: 118; makefile: 6
file content (18 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<HTML><BODY>
<H1> test_expr14 (built-in functions) </H1>
int(5.1)=<tmpl_var EXPR="int(5.1)">
abs(-2)=<tmpl_var EXPR="abs(-2)">
abs(-2.0)=<tmpl_var EXPR="abs(-2.0)">
defined(0)=<tmpl_var EXPR="defined(0)">
length(1)=<tmpl_var EXPR="length(1)">
length('abc')=<tmpl_var EXPR="length('abc')">
length('ab\'c')=<tmpl_var EXPR="length('ab\'c')">

hex(123)=<tmpl_var EXPR="hex(123)">
oct(123)=<tmpl_var EXPR="oct(123)">

allowed by current rules - but should not crash
int()=<tmpl_var EXPR="int()">
oct()=<tmpl_var EXPR="oct()">
hex()=<tmpl_var EXPR="hex()">
</body></html>