Thread Tiefe Hash Strukturen aus Config bilden: Und warum while(<FH>) gefährlich ist (62 answers)
Opened by bloonix at 2006-05-09 17:07

bloonix
 2006-05-10 14:47
#65820 #65820
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
[quote=pq,10.05.2006, 11:35]
Code: (dl )
perl -we'$_="test";print while <>;print "\$_:$_\n"'
[/quote]
aber wird $_ durch die while-Schleife nicht überschrieben?

print $_:$_ müsste doch eigentlich "b:b" ausgeben,
weil "b" das letzte Zeichen ist, welches du eingegeben hast
und in $_ stand...

wo ist hier mein denkfehler?
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.

View full thread Tiefe Hash Strukturen aus Config bilden: Und warum while(<FH>) gefährlich ist