Leser: 1
|< 1 2 >| | 14 Einträge, 2 Seiten |
my @comments = grep { $_ =~ /^$benutzer/ } <$config{cards}/comments/*.txt>;
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
print "$_\n for <$config{cards}/comments/*.txt>
$_ =~ /^$benutzer/
QuoteMit opendir funktioniert es. Aber das ist mir zuviel Code !!!
my @comments = <$config{cards}/comment/$buntzer*.txt>;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
print "mit opendir:\n"; print "-" x 80,"\n"; opendir(DH, './') or die $!; print "$_\n" for grep { /\.pl$/} readdir(DH); closedir(DH); print "\nglob mit Pfad:\n"; print "-" x 80,"\n"; print "$_\n" for <./*.pl>; print "\nglob ohne Pfad:\n"; print "-" x 80,"\n"; print "$_\n" for <*.pl>;
QuoteAusgabe:
mit opendir:
--------------------------------------------------------------------------------
gui.pl
ircconn.pl
glob mit Pfad:
--------------------------------------------------------------------------------
./gui.pl
./ircconn.pl
glob ohne Pfad:
--------------------------------------------------------------------------------
gui.pl
ircconn.pl
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
my @comments = grep { (split /\//, $_)[-1] =~ /^$username/ } <$config{cards}/comments/*.txt>;
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
my(@comments) = <$config{cards}/comments/$benutzername_*.txt>;
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl
use strict;
use warnings;
use File::Basename;
my(@comments) = map {basename($_)} <$config{cards}/$benutzername_*.txt>;
print "$_\n" for @comments;
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
|< 1 2 >| | 14 Einträge, 2 Seiten |