repo.or.cz
/
perlbook.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial commit from the 2013 with minor fixes. From now and then,
[perlbook.git]
/
l35.pl
blob
8a99882d53dcf3212a45eaf57da7a6c88d7b9719
1
#!/usr/bin/perl -w
2
use
strict
;
3
use
warnings
;
4
5
-
e
"some.txt"
or die
"Нет такого файла.
\n
"
;
6
7
open
(
my
$fh
,
"<some.txt"
)
or die
"Не могу открыть файл
\n
"
;
8
9
print
$_
while
<
$fh
>;