Debian Codegraph @

t/head.pl

raw symbols SCIP
1 #!/usr/bin/env perl
2 # head(1) utility for testing
3
4 # ------ pragmas
5 use warningsscip-perl cpan pmtools 2.2.0 warnings/;
6 use strictscip-perl cpan pmtools 2.2.0 strict/;
7
8 # ------ define variables
9 my $count = 0; # line count
10 my $line = undef; # current input line
11
12 while ($line = <>) {
13 if (++$count < 100) {
14 printscip-perl cpan pmtools 2.2.0 main/print(). $line;
15
16 next;
17 }
18
19 exitscip-perl cpan pmtools 2.2.0 main/exit().(0);
20 }