
Where do I place this in the script. I just get a date of Jan 1, 1969 etc
File name is *.dat
#!/usr/bin/perl
my $path = '/..../..../...../nm';
print "Content-type: text/html\n\n";
opendir NEW, $path or die $!;
my @files = sort { -M "$path/$a" <=> -M "path/$b" } readdir NEW;
closedir NEW;
my $latest = $files[-1];
open MEMBER, "$path/$latest" or die $!;
my $alias = <MEMBER>;
close MEMBER;
chomp $alias;
print "<font face=\"verdana,Arial\" color=\"black\" size=\"1\">Welcome to a new member<br><b>$alias</b></font>";
thanks again
Paul