Thread Variablen aus einem array erstellen (21 answers)
Opened by Gast at 2008-08-21 16:22

LanX-
 2008-08-21 22:28
#113859 #113859
User since
2008-07-15
1000 Artikel
BenutzerIn

user image
@pq: danke für den interessanten Link, aber bei diesen anonymen Glaskugelgästen gehts mir wie mjd

When people come into comp.lang.perl.misc asking how to do something stupid, I'm never quite sure what to do. I can just answer the question as asked, figuring that it's not my problem to tell people that they're being stupid. That's in my self-interest, because it takes less time to answer the question that way, and because someone might someday pay me to clean up after their stupidity, as happened in this instance. But if I do that, people might jump on me for being a smart aleck, which has happened at times. (``Come on, help the poor guy out; if you know what he really needs why don't you just give it to him?'')

On the other hand, I could try to answer on a different level, present a better solution, and maybe slap a little education on `em. That's nice when it works, but if it doesn't it's really sad to see your hard work and good advice ignored. Also, people tend to jump on you for not answering the question. (``Who are you to be telling this guy what he should be doing? Just answer the question.'')


Oder auf deutsch: Dumme Frage, dumme Antwort.

Mal auf der Metaebene:
Im Interesse des Forums wärs schön wenn die fitten Ratgeber hier davor geschützt werden Stunden in die Beantwortung von hingerotzten Fragen zu investieren. Da werden Perlen vor die Säue geworfen die andernorts eher benötigt würden.

Es könnte reichen grundsätzlich blöde Fragen mit kurzen (höflichen) Gegenfragen zu beantworten, wenn sich nicht immer jemand fände der einen auf Mutter Theresa machen muss.


Ich versuche den Mittelweg, kurze Frage zurück, kurze Antwort ohne Gewähr.


Und um die Fragestellung grundsätzlich zu beantworten, in den meisten Fällen würde ich auch Hashes nutzen, insbesondere weil mir der Ansatz auch potentiell deprecated scheint. Allerdings hat mjd IMHO unterschlagen das man mit package arbeiten könnte, was aber meistens eh viel aufwändiger ist als mit Hashes.

View full thread Variablen aus einem array erstellen