![]() |
|< 1 2 >| | ![]() |
20 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
sub myReadLine {
my $fh = shift;
my $s = '';
while ( sysread( $fh, my $c, 1 ) ) {
last if ( $c eq "\x0A" or $c eq "\x0D" );
$s = $s. $c;
}
return $s;
}
open( my $fh, '<', $oldname ) or die "$oldname: $!";
binmode $fh;
while ( my $s = myReadLine( $fh ) ) {
($newname) = $s =~ /\/FullName\s+\(([^)]+)\)/;
last if defined $newname;
}
close ($fh);
warn "$oldname: name of font not found!\n" if not defined $newname;
while ( my $s = myReadLine( $fh ) ) )
Quote'' ist aber auch defined
while ($s = ReadLine($fh) && $s !~ /^$/) {
1 2 3 4 5 6 7 8 9 10
sub aaa { my $s = ''; return $s; } if ( $bb = aaa() ) { print "TRUE\n"; } else { print "FALSE\n"; }
1 2 3 4 5 6 7 8 9 10 11 12
sub aaa { my $s = ''; return $s; } if ( $bb = aaa() ) { print "TRUE "; } else { print "FALSE "; }
1
2
3
4
5
6
7
8
9
10
11
12
sub aaa {
my $s = '';
return $s;
}
my $bb;
if ( defined ($bb = aaa()) ) {
print "TRUE ";
} else {
print "FALSE ";
}
my $var;
$var = '';
![]() |
|< 1 2 >| | ![]() |
20 Einträge, 2 Seiten |