in reply to One liner to print a file system tree on UNIX like systems

Golf! Fewer strokes...
ls -R | perl -ne'if(s/:$//){s{[^/]*/}{--}g;s/^-/\t|/;print}'

Or just tree -d