Thread Trickkiste: join Hash-Keys (18 answers)
Opened by bloonix at 2006-07-17 15:41

Crian
 2006-07-17 15:47
#68146 #68146
User since
2003-08-04
5873 Artikel
ModeratorIn
[Homepage]
user image
Code: (dl )
1
2
3
4
5
6
7
my %hash = (
val1 => 1,
val2 => 2,
val3 => 3,
);

print join ',', map {$a = "$_:$hash{$_}";$a} sort keys %hash;


Ausgabe

Code: (dl )
val1:1,val2:2,val3:3
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 Trickkiste: join Hash-Keys