Thread Hash-Inhalt auf Festplatte speichern (26 answers)
Opened by der_thomas at 2013-09-21 17:43

Froschpopo
 2013-09-27 11:57
#170702 #170702
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
Hier auch noch eine Alternative:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
use JSON;

my $hash = {};

open(FILE, ">file.txt")
or die "Fehler: $!\n";

print FILE to_json($hash);

close(FILE);

JSON könnte man schön parsen und du könntest den Inhalt dann auch von anderen Programmen aus nutzen weil es ein bekannter Standard ist.
Das ist auch nicht so riskant, falls du vorhast es wieder mittels eval ins Programm zu holen.
Last edited: 2013-09-27 12:01:03 +0200 (CEST)

View full thread Hash-Inhalt auf Festplatte speichern