Thank you for your reply. Yes, I was also thinking that, thanks. -L
2009/2/26 Yogesh Sawant <y.saw...@gmail.com>: > > On Wed, Feb 25, 2009 at 6:14 PM, Lauri Nikkinen <lauri.nikki...@iki.fi> > wrote: >> >> Hi, >> >> I wrote a script which copies files in directory to an another >> directory based on user input. Any suggestions to simplify or shorten >> this? I'm using Win XP. > > instead of accepting inputs from user, how about using command line > arguements so that you execute script as: > $ your_script.pl --source_dir /foo --dest_dir /doo --days 7 > > CPAN module Getopt::Long would be helpful in this case - > http://search.cpan.org/~jv/Getopt-Long-2.37/lib/Getopt/Long.pm > > cheers > yogesh > > -- > -----BEGIN GEEK CODE BLOCK----- > Version 1.0 > GO d-@ s: a- C++$ UBL++>$ P+++>$ L+++>$ > E- W++ N+ o K w-- !O- !M- V- > PS+@ PE++@ Y+ !PGP > t 5 X R+++ tv b+> DI++ D G > e++ h--- r+++ y+++ > ------END GEEK CODE BLOCK------ > > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/