Compare two files

2007-10-05 Thread fredrik . y . andersson
Hi I would like to compare two files by comparing the files dates. If one file shows ls -la May 12 2003 filename and the other name shows the same date they are OK for me (I'm not interested in the time part only the date of the file) But if the dates are not the same I would like to copy one of th

GetOptions argument given multiple times

2007-07-23 Thread fredrik . y . andersson
Hi I'm trying to use multiple options with GetOptions $>perl myprogram.pl --byggvy=abc --byggvy=def How do you write the code for the GetOptions? Best Regards Fredrik Andersson My code: #!/usr/local/bin/perl use warnings; use Getopt::Long; my %Options = (); #Is this the correct way? GetOption