|< 1 2 >| | 12 Einträge, 2 Seiten |
@Array = ("0","1","2","3","4","5","6");
1
2
3
4
5
6
7
8
$Data = "\@Array = (";
foreach (@Array) {
$Data .= "\"$_\",";
}
$Data .= "\"$Input\"";
$Data .= ");";
print $Data;
[E|B,09.05.2004, 19:46]1. "do" beachtet immer @INC
1
2
3
4
5
6
7
8
9
10
11
# ungetestet
use YAML;
open FH, "datei" or die $!;
my $yaml = do { local $/; <FH> };
close FH;
my $array_ref = Load($yaml);
$array_ref->[$neuer_index] = $neuer_wert;
$yaml = Dump($array_ref);
open FH, ">datei" or die $!;
print FH $yaml;
close FH;
1
2
3
4
5
$ corelist Data::Dumper
Data::Dumper was first released with perl 5.005
$ corelist Storable
Storable was first released with perl 5.007003
|< 1 2 >| | 12 Einträge, 2 Seiten |