Thread Kleine Frage (9 answers)
Opened by pl at 2007-07-27 01:24

Gast Gast
 2007-07-27 07:34
#78947 #78947
So könnte es klappen:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl -w
use strict;

my $file = 'test.txt';
my $arg = pop(@ARGV);

if ($arg eq '-s') {
print "Verschiebe Datei\n";
#...
} elsif ($arg eq '-l') {
print "Lösche Datei\n";
#...
} else {
print "Unbekanntes Argument\n";
}


MfG

View full thread Kleine Frage