8 Einträge, 1 Seite |
Quote<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<BASEFOLDER base='/root/'>
<FOLDER1 name='' chmod='0755' regex='^\w{2}-\d{4}$'>
<FOLDER2 name='' chmod='0755' regex='^\w$'>
<FOLDER name='Schriftverkehr' chmod='0775' />
<FOLDER name='Rechnungen' chmod='0775' />
<FOLDER name='Labordaten' chmod='0775' />
<FOLDER name='Fotos' chmod='0775' />
<FOLDER name='Plaene' chmod='0775' />
</FOLDER2>
</FOLDER1>
</BASEFOLDER>
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
use strict;
#use Data::Dumper;
use XML::Simple;
my $folder = XMLin('folder.xml');
for (keys(%{$folder->{FOLDER1}})) {
print $folder->{FOLDER1}->{$_}->{chmod},"\n";
}
#print Dumper($folder);
XMLin('folder.xml',forcearray=>1);
8 Einträge, 1 Seite |