10 $PROGRAM_DIR =~ s/[^\/\\]+$//;
11 $PROGRAM_DIR = "./" unless($PROGRAM_DIR);
13 map "$PROGRAM_DIR$_",qw{modules lib
../modules
..lib
};
17 my @OPTIONS = qw
/help|h|? version|ver edit-me manual|man/;
22 require MyPlace
::Usage
;
23 Getopt
::Long
::GetOptions
(\
%OPTS,@OPTIONS);
24 MyPlace
::Usage
::Process
(\
%OPTS,$VERSION);
26 use List
::Util
qw(shuffle);
40 push @options,@ARGV if(@ARGV);
42 $option = join(" ",@options) if(@options);
44 push @dirs,'.' unless(@dirs);
46 open FI
,'-|','find','-L',@dirs,'-type','f';#,'-printf','%P\n';
49 push @videos,$_ if(/\.(?:rmvb|rm|avi|mkv|asf|3gp|flv|wmv|mp4)$/i);
53 @videos = shuffle
(@videos);
57 print STDERR
":[$index|$count] $_\n";
67 playvideo - PERL script
71 playvideo [options] ...
79 Print version infomation.
83 Print a brief help message and exits.
85 =item B<--manual>,B<--man>
87 View application manual
91 Invoke 'editor' against the source
101 2010-09-08 duel <duel@myplace.hell>
107 duel <duel@myplace.hell>