#!/usr/local/bin/perl print "Content-type: text/html\n\n"; #### Let the browser know you'll be sending HTML stuff opendir(FORUMDIR, "Msg_Open"); @files = reverse(grep(/.*msg$/,readdir(FORUMDIR))); closedir(FORUMDIR); #### Get a list of files in the directory that holds the messages @files1 = reverse(@files); #### reverse the order so we go from newest to oldest. print qq!
Delete Messages