Thread einleseproblem (16 answers)
Opened by lukastonner at 2010-07-01 13:46

pq
 2010-07-01 20:21
#139278 #139278
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
och, dann ginge auch CPAN:IO::All statt read_file:
Code (perl): (dl )
1
2
use IO::All;
my @lines = io($filename)->slurp;

io() bricht automatisch ab, falls die datei nicht geöffnet werden kann.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread einleseproblem