Brian Milbrandt wrote:
Please dont' top post :)
I appreciate the help, is there a way to do it by taking the source and target directory's as command line arguments? that is how the unix script is written that I am trying to convert.
my $source = $ARGV[0]; my $target = $ARGV[1];
may want to add something in case they don't defined them:
die "Usage: $0 SOURCE_DIR TARGET_DIR" if !-d $source || $target !~ m/^\w+$/; # or whatever regex is appropriate for your needs (like slashes and periods)
HTH :)
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>