Thread Seltsamer Effekt des fetten Kommas (5 answers)
Opened by BernhardSchmalhofer at 2023-06-02 16:53

GwenDragon
 2023-06-02 17:45
#194945 #194945
User since
2005-01-17
14628 Artikel
Admin1
[Homepage]
user image
Quote
The => operator (sometimes pronounced "fat comma") is a synonym for the comma except that it causes a word on its left to be interpreted as a string if it begins with a letter or underscore and is composed only of letters, digits and underscores.


Da denkt Perl wohl mit und wirft die Leezeichen weg.
ich war auch der Annahme, dass alles was links vom => ist, zu einer Zeichenkette und damit samt zum Schlüssel des Hashes wird.
Oder -       TEST wird als negatives Bareword angesehen. Aber wie der Parser das sieht, ich bin überfragt.

Warum das so ist, das wissen wohl nur die Perl-Core-Leute.
Last edited: 2023-06-02 18:06:47 +0200 (CEST)

View full thread Seltsamer Effekt des fetten Kommas