Thread Hash als Option missbrauchen
(118 answers)
Opened by bloonix at 2005-12-19 02:24
wie kann ich denn sicherstellen, dass mir ein Hash und keine Referenz
übergeben wird? Code: (dl
)
die 'bad ...' if ref @_ eq 'HASH'; das klappt irgendwie nicht ... ich könnte zwar mit Code: (dl
)
die 'bad ...' if ref $_[0] eq 'HASH'; prüfen, aber geht das nicht einfacher? What is a good module? That's hard to say.
What is good code? That's also hard to say. One man's Thing of Beauty is another's man's Evil Hack. |