Thread Handle in String (6 answers)
Opened by Perl1976 at 2015-05-08 09:39

rosti
 2015-05-09 08:38
#180984 #180984
User since
2011-03-19
3492 Artikel
BenutzerIn
[Homepage]
user image
$count brauchst nicht, die Zeilen# steck in $.
chomp ohne Argument nimmt $_

Brief:

Code (perl): (dl )
1
2
3
4
5
use strict;
use warnings;

open my $dir, "dir |" or die $^E;
printf "Zeile: %s => %s\n", $. , do{chomp; $_} while <$dir>;


( >dir anstelle >ls )

View full thread Handle in String