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

bianca
 2013-09-26 09:16
#170653 #170653
User since
2009-09-13
6990 Artikel
BenutzerIn

user image
Noch eine Frage zur Umsetzung: Wieso klappt dieses Script nicht?
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;

my %config = (
    max_prozesse    => 5,
);

use Data::Dumper;
open (my $fh,'>','config.dat') or die $!;
print $fh Dumper(\%config);
close($fh);

open ($fh,'<','config.dat') or die $!;
my $config_neu = eval <$fh>;
print Dumper($config_neu);

Quote
$VAR1 = undef;
10 print "Hallo"
20 goto 10

View full thread Hash-Inhalt auf Festplatte speichern