Thread Map bei Hash ? (12 answers)
Opened by BrownWolf at 2004-01-08 15:15

Crian
 2004-01-08 22:15
#78657 #78657
User since
2003-08-04
5871 Artikel
ModeratorIn
[Homepage]
user image
Funktionierendes Beispiel:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl
use strict;

use Data::Dumper;

my %hash = (
farbe => 'gelb',
form => 'kreis',
);

my @array = %hash;

print Dumper \%hash;

print Dumper \@array;


Ausgabe:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
$VAR1 = {
'farbe' => 'gelb',
'form' => 'kreis'
};
$VAR1 = [
'farbe',
'gelb',
'form',
'kreis'
];
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;

use strict; use warnings; Link zu meiner Perlseite

View full thread Map bei Hash ?