test/html/EmbperlObject/obj/epobase.htm
raw| 1 | |
| 2 | [! |
| 3 | |
| 4 | sub new |
| 5 | { |
| 6 | my $self = shift ; |
| 7 | |
| 8 | $self -> {fontsize} = 1 ; |
| 9 | } |
| 10 | |
| 11 | sub title |
| 12 | { |
| 13 | 'default' ; |
| 14 | } |
| 15 | |
| 16 | !] |
| 17 | |
| 18 | [- |
| 19 | $self = shift ; |
| 20 | |
| 21 | $self -> new ; |
| 22 | -] |
| 23 | |
| 24 | |
| 25 | <html> |
| 26 | <head> |
| 27 | <title>Example using Objects: [+ $self -> title +]</title> |
| 28 | </head> |
| 29 | <body> |
| 30 | [- Execute ('epohead.htm') -] |
| 31 | [- Execute ('*') -] |
| 32 | [- Execute ('epofoot.htm') -] |
| 33 | </body> |
| 34 | </html> |