Thread Hash mit mehreren Werten (18 answers)
Opened by Newbie2008 at 2008-12-05 15:39

betterworld
 2008-12-05 16:42
#116852 #116852
User since
2003-08-21
2614 Artikel
ModeratorIn

user image
Gast+2008-12-05 15:25:49--
Code: (dl )
$user {Passwort}
das ist für perl was anders als
Code: (dl )
$user{Passwort}

Sicher?
Code: (dl )
1
2
3
4
5
6
7
perl -MO=Deparse -lwe '$user {Passwort}' 
Useless use of hash element in void context at -e line 1.
Name "main::user" used only once: possible typo at -e line 1.
BEGIN { $^W = 1; }
BEGIN { $/ = "\n"; $\ = "\n"; }
$user{'Passwort'};
-e syntax OK

View full thread Hash mit mehreren Werten