The distinctive Perl camel is (c) O'Reilly
Perl Workshop Home Page
Home of the Bioinformatics Perl Workshop perl workshop > courses > spans and sets (4.0.2.1) > Spans and Sets (.1/1) > range (.c1)

course 4.0.2.1

Level: intermediate
4.0.2.1.1
Introduction to Set::IntSpan, Set::IntRange, Set::Window and Set::Bag.

legend

course code

cat.course.level.sessions.session

e.g. 1.0.1.8

categories

0 | introduction and orientation

1 | perl fundamentals

2 | shell and prompt tools

3 | web development

4 | CPAN Modules

5 | Ruby

levels

level: all all ( 0 )

level: beginner beginner ( 1 )

level: intermediate intermediate ( 2 )

level: advanced advanced ( 3 )

[ have you wondered how many different banners there are? ]

lecture code viewer

downloads

Code
Spans and Sets
Spans and Sets
Martin Krzywinski
#!/usr/local/bin/perl use strict; use Set::IntRange; $\ = "\n"; $, = " "; my $S = Set::IntRange->new(-20,20); my $T = Set::IntRange->new(-20,20); $S->Interval_Fill(2,10); $T->Interval_Fill(5,15); $S->Union($S,$T); print $S->Norm;

1 | Spans and Sets | 4.0.2.1.1

4.0.2.1.1.p1 | Spans and Sets | Martin Krzywinski | ppt
4.0.2.1.1.c1 | range | Martin Krzywinski | code
4.0.2.1.1.c2 | spans | Martin Krzywinski | code
4.0.2.1.1.d1 | Spans and Sets | Martin Krzywinski | data
4.0.2.1.1.d2 | Spans and Sets | Martin Krzywinski | data
4.0.2.1.1.d3 | Spans and Sets | Martin Krzywinski | data
4.0.2.1.1.a1 | Spans and Sets | Martin Krzywinski | pdf
4.0.2.1.1.s1 | Spans and Sets | Martin Krzywinski | slides