: eval 'exec perl -w -S `echo $0 | sed "s/.*\///" ` ${1+"$@"}' if 0; @a=@ARGV; @flags=grep(/^-/,@a); @files=grep(-f,@a); @ARGV=@files; @other=(); @other=grep(!-d,grep(!-f,grep(!/^-/,@a))); @dirs=(); @dirs=grep(-d,@a); # if (@dirs){push (@ARGV,&lsfiles(@dirs));} if ( grep( /^-h(elp)?$/,@flags) or ( ! @a and eof(ARGV) and eof(STDIN) ) ) { $scriptName = $0; $scriptName =~ s%^.*/%%; print <<"END"; Usage: $scriptName [-h -help] [ )) { chomp $line; chomp $line; $line =~ s/\\/\\\\/g; $line =~ s/"/\\"/g; print <<"EOF"; \"$line\\n\"+ EOF } print " \"\"\n";