Debian Codegraph @

t/head.pl

raw symbols SCIP
1 #!/usr/bin/env perl
2 # head(1) utility for testing
3
4 # ------ pragmas
5 use warnings;
6 use 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 print $line;
15
16 next;
17 }
18
19 exit(0);
20 }