File: demo_arrowfilled.pl

package info (click to toggle)
libperl6-form-perl 0.04-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 488 kB
  • ctags: 103
  • sloc: perl: 2,764; makefile: 47
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]];