Add option --suffix
This commit is contained in:
parent
03ebbfe2ec
commit
81ddb6bcba
|
@ -1,6 +1,15 @@
|
|||
#!@@@perl@@@ -w
|
||||
#!@@@perl@@@
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
use Getopt::Long;
|
||||
|
||||
my $suffix = "";
|
||||
|
||||
GetOptions(
|
||||
"suffix:s" => \$suffix,
|
||||
);
|
||||
|
||||
|
||||
my @pp;
|
||||
for my $p (@ARGV) {
|
||||
|
@ -9,6 +18,7 @@ for my $p (@ARGV) {
|
|||
for (my $i = 0; $i < scalar(@p); $i++) {
|
||||
my $pp = join("/", @p[0..$i]);
|
||||
$pp = "/" if $pp eq "";
|
||||
$pp .= $suffix;
|
||||
|
||||
push (@pp, $pp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue