File: demo_arrowfilled.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 (14 lines) | stat: -rwxr-xr-x 262 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use Perl6::Form;

sub hashes {
	my ($match,$opts) = @_;
	$opts->{lfill}='>> ';
	$opts->{rfill}='<< ';
	return '{I{'.length($match).'}I}';
}

print form
	{field=>[qr/(#+)/=>\&hashes]},
	"[###|###############################]",
	[1,2,3], [qw[First Second Last]];