[quote=sri,12.03.2005, 02:27]YAML++[/quote]
toll; einfach mal das Beispiel ausgeführt
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
C:\Dokumente und Einstellungen\sak>perl
use YAML;
my ($hashref, $arrayref, $string) = Load(<<'--END');
---
name: ingy
age: old
weight: heavy
# I should comment that I also like pink, but don't tell anybody.
favorite colors:
- red
- white
- blue
---
- clark
- oren
- ingy
--- ]
You probably think YAML stands for "Yet Another Markup Language". It
ain't! YAML is really a data serialization language. But if you want
to think of it as a markup, that's OK with me. A lot of people try
to use XML as a serialization format.
"YAML" is catchy and fun to say. Try it. "YAML, YAML, YAML!!!"
--END
print Store($string, $arrayref, $hashref);
use Data::Dumper;
print Dumper($string, $arrayref, $hashref);
^Z
--- !perl/YAML::Error
code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
msg: Inconsistent indentation level
line: 15
document: 3
...
at - line 2
Macht aber nix; ich will ja xml. :)