Thread RDW #1 - Rätsel der Woche Nummer eins
(112 answers)
Opened by Crian at 2004-07-08 21:52
[quote=steve,12.07.2004, 12:39]btw. hat jemand ne iterative Lösung ohne File::Find?[/quote]
Ja meine! :) Code: (dl
)
perl -MData::Dumper -e 'do{for(<$_*>){split m[/]and$.=\%.and push@.,"$_/";$.=$.->{$_[$_]}||=$_==$#_?"":{}for 0..$#_;}}while($_=shift@.);&_;sub _{print Dumper\%.}' |