Debian Codegraph @

test/cmp/execviamod.htm

raw
1 <html>
2 <head>
3 <title>Tests for Embperl - Execute via an intermediate module</title>
4 </head>
5
6
7 <body>
8
9 <h1>Tests for Embperl - Execute via an intermediate module</h1>
10
11
12 begin execviamod
13
14 <html>
15 <head>
16 <title>Some Plain tests for Embperl</title>
17 </head>
18
19 <!-- Here is a comment -->
20
21 <body>
22
23 Here it starts with some HTML Text<P>
24
25 All values should be undefined:
26
27 $a = <BR>
28 $b = <BR>
29 $c = <BR>
30 $d = <BR>
31 $e = <BR>
32
33 ARRAY @d = num = 0 <BR>
34 ARRAY @x = num = 0 <BR>
35 HASH %a = num = 0 <BR>
36 HASH %y = num = 0 <BR>
37
38
39 First of all assign a value:
40 <BR>
41 Now we have some 'Umlaute':
42
43
44 Now lets look what we are getting from this:<BR>
45 (this is the value in $a) (this is the value in $a) &auml;&ouml;&uuml;<BR>
46
47 ARRAY @d = 1 2 3 num = 3 <BR>
48 ARRAY @x = 9 8 7 num = 3 <BR>
49 HASH %a = 1 2 3 a b c num = 3 <BR>
50 HASH %y = 7 8 9 x y z num = 3 <BR>
51
52 And now a and b together: (this is the value in $a)(this is the value in $a) &auml;&ouml;&uuml;<P>
53
54 Here we have some HTML tags within the perl code, Embperl will delete them!<BR>
55
56 57
57 SELECT * FROM a ORDER BY b USING &lt;; Hi There&gt;
58 Here we have something which looks like a HTML tag, but does not start with<br>
59 a character, Embperl does not change them!<BR>
60
61 SELECT * FROM a ORDER BY b USING &lt;; Hi There&gt;
62 Embperl will also translate HMTL escapes to the right characters i.e. $a &amp;lt; 6 will get the perl expression $a &lt; 6: <BR>
63
64 1
65 Now they should have a value
66
67 $a = (this is the value in $a) <BR>
68 $b = (this is the value in $a) &auml;&ouml;&uuml; <BR>
69 $c = 57 <BR>
70 $d = 1 <BR>
71 $e = 2 <BR>
72
73 Input Separator = 10<br>
74
75 <P>Ok.<P>
76
77
78 </body>
79 </html>
80 middle execviamod
81
82 <html>
83 <head>
84 <title>Some Plain tests for Embperl</title>
85 </head>
86
87 <!-- Here is a comment -->
88
89 <body>
90
91 Here it starts with some HTML Text<P>
92
93 All values should be undefined:
94
95 $a = (this is the value in $a) <BR>
96 $b = (this is the value in $a) &auml;&ouml;&uuml; <BR>
97 $c = 57 <BR>
98 $d = 1 <BR>
99 $e = 2 <BR>
100
101 ARRAY @d = 1 2 3 num = 3 <BR>
102 ARRAY @x = num = 3 <BR>
103 HASH %a = 1 2 3 a b c num = 3 <BR>
104 HASH %y = 7 8 9 x y z num = 3 <BR>
105
106
107 First of all assign a value:
108 <BR>
109 Now we have some 'Umlaute':
110
111
112 Now lets look what we are getting from this:<BR>
113 (this is the value in $a) (this is the value in $a) &auml;&ouml;&uuml;<BR>
114
115 ARRAY @d = 1 2 3 num = 3 <BR>
116 ARRAY @x = 9 8 7 num = 3 <BR>
117 HASH %a = 1 2 3 a b c num = 3 <BR>
118 HASH %y = 7 8 9 x y z num = 3 <BR>
119
120 And now a and b together: (this is the value in $a)(this is the value in $a) &auml;&ouml;&uuml;<P>
121
122 Here we have some HTML tags within the perl code, Embperl will delete them!<BR>
123
124 57
125 SELECT * FROM a ORDER BY b USING &lt;; Hi There&gt;
126 Here we have something which looks like a HTML tag, but does not start with<br>
127 a character, Embperl does not change them!<BR>
128
129 SELECT * FROM a ORDER BY b USING &lt;; Hi There&gt;
130 Embperl will also translate HMTL escapes to the right characters i.e. $a &amp;lt; 6 will get the perl expression $a &lt; 6: <BR>
131
132 1
133 Now they should have a value
134
135 $a = (this is the value in $a) <BR>
136 $b = (this is the value in $a) &auml;&ouml;&uuml; <BR>
137 $c = 57 <BR>
138 $d = 1 <BR>
139 $e = 2 <BR>
140
141 Input Separator = 10<br>
142
143 <P>Ok.<P>
144
145
146 </body>
147 </html>
148 end execviamod
149 Now without output
150
151
152 <html>
153 <head>
154 <title>Some Plain tests Embperl</title>
155 </head>
156
157 <body>
158
159 Here it starts with some HTML Text<P>
160
161 All values should be undefined:
162
163 $a = <BR>
164 $b = <BR>
165 $c = <BR>
166 $d = <BR>
167 $e = <BR>
168
169
170 First of all assign a value:
171 <BR>
172
173 Now we have some 'Umlaute':
174
175
176 Now lets look what we are getting from this:<BR>
177 (this is the value in $a) (this is the value in $a) &auml;&ouml;&uuml;<BR>
178
179 And now a and b together: (this is the value in $a)(this is the value in $a) &auml;&ouml;&uuml;<P>
180
181 Here we have some HTML tags within the perl code, Embperl will delete them!<BR>
182
183 57
184 Embperl will also translate HMTL escapes to the right characters i.e. $a &amp;lt; 6 will get the perl expression $a &lt; 6: <BR>
185
186 1
187 Now they should have a value
188
189 $a = (this is the value in $a) <BR>
190 $b = (this is the value in $a) &auml;&ouml;&uuml; <BR>
191 $c = 57 <BR>
192 $d = 1 <BR>
193 $e = 2 <BR>
194
195 a <br>
196 a <br>
197 a <br>
198 b is null <br>
199 a <br>
200 b is null <br>
201 a<br>
202 b is null <br>
203 <table></table>
204
205
206 <p> $tabmode = default <p>
207
208 <hr><p>Display an two dimensional array with one, two and three columns !<BR>
209 Please take a look at the source in your browser to see the difference<BR>
210
211 $a[0][0] = '1/1' ;<BR>
212 $a[1][0] = '2/1' ;<BR>
213 $a[1][1] = '2/2' ;<BR>
214 $a[2][0] = '3/1' ;<BR>
215 $a[2][1] = '3/2' ;<BR>
216 $a[2][2] = '3/3' ;<BR>
217
218 <P>$tabmode = default <P>
219
220 <table border="2" width="100%">
221 <tr>
222 <td>a1/1 </td>
223 </tr>
224
225 <tr>
226 <td>a2/1 </td>
227
228 <td>a2/2 </td>
229 </tr>
230
231 <tr>
232 <td>a3/1 </td>
233
234 <td>a3/2 </td>
235
236 <td>a3/3 </td>
237 </tr>
238 </table>
239
240 <table border="2" width="100%">
241 <tr>
242 <td>a1/1 </td>
243 </tr>
244
245 <tr>
246 <td>a2/1 </td>
247
248 <td>a2/2 </td>
249 </tr>
250
251 <tr>
252 <td>a3/1 </td>
253
254 <td>a3/2 </td>
255
256 <td>a3/3 </td>
257 </tr>
258 </table>
259
260 <table border="2" width="100%">
261 <tr>
262 <td>a1/1 </td>
263 </tr>
264
265 <tr>
266 <td>a2/1 </td>
267
268 <td>a2/2 </td>
269 </tr>
270
271 <tr>
272 <td>a3/1 </td>
273
274 <td>a3/2 </td>
275
276 <td>a3/3 </td>
277 </tr>
278 </table>
279
280 <table>
281 <tr>
282 <td>
283 <table>
284 <tr>
285 <td>b1/1 </td>
286 </tr>
287
288 <tr>
289 <td>b2/1 </td>
290
291 <td>b2/2 </td>
292 </tr>
293
294 <tr>
295 <td>b3/1 </td>
296
297 <td>b3/2 </td>
298
299 <td>b3/3 </td>
300 </tr>
301 </table>
302
303 a1/1 </td>
304 </tr>
305
306 <tr>
307 <td>
308 <table>
309 <tr>
310 <td>b1/1 </td>
311 </tr>
312
313 <tr>
314 <td>b2/1 </td>
315
316 <td>b2/2 </td>
317 </tr>
318
319 <tr>
320 <td>b3/1 </td>
321
322 <td>b3/2 </td>
323
324 <td>b3/3 </td>
325 </tr>
326 </table>
327
328 a2/1 </td>
329
330 <td>
331 <table>
332 <tr>
333 <td>b1/1 </td>
334 </tr>
335
336 <tr>
337 <td>b2/1 </td>
338
339 <td>b2/2 </td>
340 </tr>
341
342 <tr>
343 <td>b3/1 </td>
344
345 <td>b3/2 </td>
346
347 <td>b3/3 </td>
348 </tr>
349 </table>
350
351 a2/2 </td>
352 </tr>
353
354 <tr>
355 <td>
356 <table>
357 <tr>
358 <td>b1/1 </td>
359 </tr>
360
361 <tr>
362 <td>b2/1 </td>
363
364 <td>b2/2 </td>
365 </tr>
366
367 <tr>
368 <td>b3/1 </td>
369
370 <td>b3/2 </td>
371
372 <td>b3/3 </td>
373 </tr>
374 </table>
375
376 a3/1 </td>
377
378 <td>
379 <table>
380 <tr>
381 <td>b1/1 </td>
382 </tr>
383
384 <tr>
385 <td>b2/1 </td>
386
387 <td>b2/2 </td>
388 </tr>
389
390 <tr>
391 <td>b3/1 </td>
392
393 <td>b3/2 </td>
394
395 <td>b3/3 </td>
396 </tr>
397 </table>
398
399 a3/2 </td>
400
401 <td>
402 <table>
403 <tr>
404 <td>b1/1 </td>
405 </tr>
406
407 <tr>
408 <td>b2/1 </td>
409
410 <td>b2/2 </td>
411 </tr>
412
413 <tr>
414 <td>b3/1 </td>
415
416 <td>b3/2 </td>
417
418 <td>b3/3 </td>
419 </tr>
420 </table>
421
422 a3/3 </td>
423 </tr>
424 </table>
425
426 <P><P>
427
428 <P>17<P>
429 <P>1<P>
430
431 <P>
432
433 <table>
434 <tr>
435 <td>ii[0] = 0 </td>
436 </tr>
437
438 <tr>
439 <td>ii[1] = 1 </td>
440 </tr>
441
442 <tr>
443 <td>ii[2] = 2 </td>
444 </tr>
445
446 <tr>
447 <td>ii[3] = 3 </td>
448 </tr>
449
450 <tr>
451 <td>ii[4] = 4 </td>
452 </tr>
453
454 <tr>
455 <td>ii[5] = 5 </td>
456 </tr>
457
458 <tr>
459 <td>ii[6] = 6 </td>
460 </tr>
461
462 <tr>
463 <td>ii[7] = 7 </td>
464 </tr>
465
466 <tr>
467 <td>ii[8] = 8 </td>
468 </tr>
469
470 <tr>
471 <td>ii[9] = 9 </td>
472 </tr>
473 </table>
474
475 </body>
476 </html>
477
478 <html>
479 <head>
480 <title>Some Plain tests Embperl</title>
481 </head>
482
483 <body>
484
485 Here it starts with some HTML Text<P>
486
487 All values should be undefined:
488
489 $a = 1 <BR>
490 $b = <BR>
491 $c = 5 <BR>
492 $d = txt <BR>
493 $e = 2 <BR>
494
495
496 First of all assign a value:
497 <BR>
498
499 Now we have some 'Umlaute':
500
501
502 Now lets look what we are getting from this:<BR>
503 (this is the value in $a) (this is the value in $a) &auml;&ouml;&uuml;<BR>
504
505 And now a and b together: (this is the value in $a)(this is the value in $a) &auml;&ouml;&uuml;<P>
506
507 Here we have some HTML tags within the perl code, Embperl will delete them!<BR>
508
509 57
510 Embperl will also translate HMTL escapes to the right characters i.e. $a &amp;lt; 6 will get the perl expression $a &lt; 6: <BR>
511
512 1
513 Now they should have a value
514
515 $a = (this is the value in $a) <BR>
516 $b = (this is the value in $a) &auml;&ouml;&uuml; <BR>
517 $c = 57 <BR>
518 $d = 1 <BR>
519 $e = 2 <BR>
520
521 a <br>
522 a <br>
523 a <br>
524 b is null <br>
525 a <br>
526 b is null <br>
527 a<br>
528 b is null <br>
529 <table></table>
530
531
532 <p> $tabmode = default <p>
533
534 <hr><p>Display an two dimensional array with one, two and three columns !<BR>
535 Please take a look at the source in your browser to see the difference<BR>
536
537 $a[0][0] = '1/1' ;<BR>
538 $a[1][0] = '2/1' ;<BR>
539 $a[1][1] = '2/2' ;<BR>
540 $a[2][0] = '3/1' ;<BR>
541 $a[2][1] = '3/2' ;<BR>
542 $a[2][2] = '3/3' ;<BR>
543
544 <P>$tabmode = default <P>
545
546 <table border="2" width="100%">
547 <tr>
548 <td>a1/1 </td>
549 </tr>
550
551 <tr>
552 <td>a2/1 </td>
553
554 <td>a2/2 </td>
555 </tr>
556
557 <tr>
558 <td>a3/1 </td>
559
560 <td>a3/2 </td>
561
562 <td>a3/3 </td>
563 </tr>
564 </table>
565
566 <table border="2" width="100%">
567 <tr>
568 <td>a1/1 </td>
569 </tr>
570
571 <tr>
572 <td>a2/1 </td>
573
574 <td>a2/2 </td>
575 </tr>
576
577 <tr>
578 <td>a3/1 </td>
579
580 <td>a3/2 </td>
581
582 <td>a3/3 </td>
583 </tr>
584 </table>
585
586 <table border="2" width="100%">
587 <tr>
588 <td>a1/1 </td>
589 </tr>
590
591 <tr>
592 <td>a2/1 </td>
593
594 <td>a2/2 </td>
595 </tr>
596
597 <tr>
598 <td>a3/1 </td>
599
600 <td>a3/2 </td>
601
602 <td>a3/3 </td>
603 </tr>
604 </table>
605
606 <table>
607 <tr>
608 <td>
609 <table>
610 <tr>
611 <td>b1/1 </td>
612 </tr>
613
614 <tr>
615 <td>b2/1 </td>
616
617 <td>b2/2 </td>
618 </tr>
619
620 <tr>
621 <td>b3/1 </td>
622
623 <td>b3/2 </td>
624
625 <td>b3/3 </td>
626 </tr>
627 </table>
628
629 a1/1 </td>
630 </tr>
631
632 <tr>
633 <td>
634 <table>
635 <tr>
636 <td>b1/1 </td>
637 </tr>
638
639 <tr>
640 <td>b2/1 </td>
641
642 <td>b2/2 </td>
643 </tr>
644
645 <tr>
646 <td>b3/1 </td>
647
648 <td>b3/2 </td>
649
650 <td>b3/3 </td>
651 </tr>
652 </table>
653
654 a2/1 </td>
655
656 <td>
657 <table>
658 <tr>
659 <td>b1/1 </td>
660 </tr>
661
662 <tr>
663 <td>b2/1 </td>
664
665 <td>b2/2 </td>
666 </tr>
667
668 <tr>
669 <td>b3/1 </td>
670
671 <td>b3/2 </td>
672
673 <td>b3/3 </td>
674 </tr>
675 </table>
676
677 a2/2 </td>
678 </tr>
679
680 <tr>
681 <td>
682 <table>
683 <tr>
684 <td>b1/1 </td>
685 </tr>
686
687 <tr>
688 <td>b2/1 </td>
689
690 <td>b2/2 </td>
691 </tr>
692
693 <tr>
694 <td>b3/1 </td>
695
696 <td>b3/2 </td>
697
698 <td>b3/3 </td>
699 </tr>
700 </table>
701
702 a3/1 </td>
703
704 <td>
705 <table>
706 <tr>
707 <td>b1/1 </td>
708 </tr>
709
710 <tr>
711 <td>b2/1 </td>
712
713 <td>b2/2 </td>
714 </tr>
715
716 <tr>
717 <td>b3/1 </td>
718
719 <td>b3/2 </td>
720
721 <td>b3/3 </td>
722 </tr>
723 </table>
724
725 a3/2 </td>
726
727 <td>
728 <table>
729 <tr>
730 <td>b1/1 </td>
731 </tr>
732
733 <tr>
734 <td>b2/1 </td>
735
736 <td>b2/2 </td>
737 </tr>
738
739 <tr>
740 <td>b3/1 </td>
741
742 <td>b3/2 </td>
743
744 <td>b3/3 </td>
745 </tr>
746 </table>
747
748 a3/3 </td>
749 </tr>
750 </table>
751
752 <P><P>
753
754 <P>17<P>
755 <P>1<P>
756
757 <P>
758
759 <table>
760 <tr>
761 <td>ii[0] = 0 </td>
762 </tr>
763
764 <tr>
765 <td>ii[1] = 1 </td>
766 </tr>
767
768 <tr>
769 <td>ii[2] = 2 </td>
770 </tr>
771
772 <tr>
773 <td>ii[3] = 3 </td>
774 </tr>
775
776 <tr>
777 <td>ii[4] = 4 </td>
778 </tr>
779
780 <tr>
781 <td>ii[5] = 5 </td>
782 </tr>
783
784 <tr>
785 <td>ii[6] = 6 </td>
786 </tr>
787
788 <tr>
789 <td>ii[7] = 7 </td>
790 </tr>
791
792 <tr>
793 <td>ii[8] = 8 </td>
794 </tr>
795
796 <tr>
797 <td>ii[9] = 9 </td>
798 </tr>
799 </table>
800
801 </body>
802 </html>
803 And done!
804
805 </body>
806 </html>