Las líneas de la 9 a la 34 documentan el uso del programa
mediante un lenguaje de marcas denominado pod .
Podemos ver la documentación con perldoc:
lhp@nereida:~/Lperl/src$ perldoc example1.pl
EXAMPLE1(1) User Contributed Perl Documentation EXAMPLE1(1)
NAME example1.pl
SYNOPSIS
example1.pl < file
DESCRIPTION
Reads file "file" and prints all the lines containing the string "LHP"
up to a line containing the string
"__END__". For example given the input file:
lhp@nereida:~/Lperl/src$ cat -n example1.input
1 Esta linea no se imprime
2 Esta linea si se imprime LHP
3 Esta no
4 Esta LHP si
5 __END__
6 y se acabo LHP
7 esta linea tampoco sale
the program produces the following output:
lhp@nereida:~/Lperl/src$ example1.pl < example1.input
Esta linea si se imprime LHP
Esta LHP si
perl v5.8.8 2007-02-23 EXAMPLE1(1)
|
Casiano Rodríguez León
