Thread OR / AND anwendung (16 answers)
Opened by Kathrin at 2005-02-02 12:46

Taulmarill
 2005-02-02 14:17
#51509 #51509
User since
2004-02-19
1750 Artikel
BenutzerIn

user image
ist evtl. das hier was du willst?
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use strict;
use warnings;

my ( $check1, $check2, $check3, $check4, $ersteller ) = ('1') x 5;
my $head_de = '1';
my $deutsch = '1';
my $head_en = '';
my $english = '';
my $head_fr = '1';
my $franz = '';

if ( ( $check1 or $check2 or $check3 or $check4 ) and $ersteller ) {
if ( $head_de and $deutsch ) {
print "deutsch OK\n";
}
elsif ( $head_de or $deutsch ) {
print "deutsch FEHLER\n";
}
else {
print "kein deutsch\n";
}
if ( $head_en and $english ) {
print "english OK\n";
}
elsif ( $head_en or $english ) {
print "english FEHLER\n";
}
else {
print "kein english\n";
}
if ( $head_fr and $franz ) {
print "franz OK\n";
}
elsif ( $head_fr or $franz ) {
print "franz FEHLER\n";
}
else {
print "kein franz\n";
}
}
$_=unpack"B*",~pack"H*",$_ and y&1|0& |#&&print"$_\n"for@.=qw BFA2F7C39139F45F78
0A28104594444504400 0A2F107D54447DE7800 0A2110453444450500 73CF1045138445F4800 0
F3EF2044E3D17DE 8A08A0451412411 F3CF207DF41C79E 820A20451412414 83E93C4513D17D2B

View full thread OR / AND anwendung