code:
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
| #!/usr/bin/perl -w
use strict;
my $bRemotescan;
my $cIpadres;
my $cHostname;
#my $cSusserver;
#my $cArgumenten;
print "Wilt u een remote scan uitvoeren (Ja/Nee): \n";
$bRemotescan = <>;
if ($bRemotescan eq 'Ja')
{
print "Scanning Local Host .....";
}
if ($bRemotescan eq 'Nee')
{
print "\nWilt u scannen op Ipadres of Hostname?";
print "\nType Ip voor Ipadres.";
print "\nType Host voor Hostname.";
$_ = <>;
if ($_ eq "Ip")
{
print "\nGeeft het ipadres op: ";
$cIpadres = <>;
print "$cIpadres";
}
if ($_ eq "Host")
{
print "\nGeef de hostname op: ";
$cHostname = <>;
print "$cHostname";
}
} |
Waarom doet perl deze if statement niet uitvoeren ?