#!perl -l # TESTED WITH v5.6.1 (MSWin32-x86-multi-thread) ONLY! require 5.006; use strict; use File::Find 'find'; my $INDENT_DELIM = ' '; my $DEPTH = 0; find( { wanted => \&wanted, preprocess => \&pre, postprocess => \&post, }, @ARGV ? @ARGV : "." ); sub pre { print indent( '
  • ' . $_ . '
  • ' ); print indent( '' ); } sub wanted { return if -d; print indent( '
  • ' . $_ . '
  • ' ); } sub indent { return $INDENT_DELIM x $DEPTH . $_[0]; }