And My Code That Don't Work
use strict;
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
use CGI;
my $basedir = '/home/users/v10/events';
my $cgi = new CGI;
my @files = sort glob("$basedir/*.evt");
foreach (@files){
open(IN,"<", $_) or die "Could not open $_: $!\n";
my $query = new CGI($_);
my $passedyet = $query->param("doe");
print $query . $passedyet; # see results on page
if ($passedyet gt $datey){rename ($_, $_ . $old)};
close(IN);
}
What I Get Back From The Print
CGI=HASH(0x81c4354)CGI=HAS
H(0x81a6040)CGI=HASH(0x81a60f4)
and $passedyet seems to be nothing at all
$datey will be the date in yyyymmdd format once I have worked out how to get it and put in the leading 0's on single number days and months