File: demo_perl6.pl

package info (click to toggle)
libperl6-form-perl 0.090-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 584 kB
  • sloc: perl: 3,080; makefile: 8
file content (25 lines) | stat: -rw-r--r-- 708 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use Perl6::Form;

my $name = 'Damian';
my $age = 39;
my $ID = '000666';
my $comments = <<'END_COMMENT';
Do not feed after midnight.
Do not expose to "stupid" ideas.
Do not allow subject to talk for "as long as he likes".
END_COMMENT

print form 
    ' =================================== ',
    '| NAME     |    AGE     | ID NUMBER |',
    '|----------+------------+-----------|',
    '| {<<<<<<} | {||||||||} | {>>>>>>>} |',
       $name,     $age,        $ID,
    '|===================================|',
    '| COMMENTS                          |',
    '|-----------------------------------|',
    '| {[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[} |',
       $comments,
    ' =================================== ',
;