/[iselect]/bin/iselect.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /bin/iselect.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (hide annotations)
Thu Oct 25 15:50:56 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: text/plain
File size: 448 byte(s)
first step into makeing it a module
1 dpavlin 1 #!/usr/bin/perl -w
2    
3     use strict;
4 dpavlin 12
5     use blib;
6    
7     use Term::ISelect;
8 dpavlin 1 use Data::Dump qw/dump/;
9    
10     my $data = <<'EOF';
11     First line
12    
13 dpavlin 4 {s}first selectable
14     {s}second selectable
15 dpavlin 1
16     a space....
17    
18     ...infinity and beyond
19    
20    
21 dpavlin 4 {s}foo
22     {s}bar
23 dpavlin 1
24     bum
25 dpavlin 4
26 dpavlin 1 EOF
27    
28 dpavlin 11 $data .= ( rand(10) < 5 ? '{s}' : '' ) . "foobar $_\n" foreach ( 1 .. 300 );
29 dpavlin 1
30 dpavlin 6 $data .= "\n--EOF--";
31    
32 dpavlin 12 Term::ISelect->screen(
33     sub {
34     warn "## ",dump(@_);
35     },
36     split(/\n/, $data),
37     );
38 dpavlin 1

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26