in reply to Re: Configuring a Perl script to extract certain records from an ASCII file
in thread Configuring a Perl script to extract certain records from an ASCII file

Grandfather, thank you for your reply, I appreciate it very much.

The initializations occur within the "forum.setup" file. As mentioned, this Perl new.cgi script is currently being used successfully to list the first three (3) messages within the forums specified in the script on the index.shtml web page using a SSI include statement. The script pulls information from a Perl-based forum software which uses ASCII database files (actual fields are shown in the code for reference purposes), not MySQL or any other database, and will be using this software in the future.

To clarify, I need help in the additional FOR or IF statements which are needed to properly select the moderator(s) records from the three ASCII databases (education, history, and news forums) which this script opens and searches through.

I hope to find a coding solution to this problem. Thank you again for your message.

Zoro

  • Comment on Re^2: Configuring a Perl script to extract certain records from an ASCII file

Replies are listed 'Best First'.
Re^3: Configuring a Perl script to extract certain records from an ASCII file
by Anonymous Monk on May 09, 2011 at 09:23 UTC
    You say you want to filter by author/$lauthor, so use some comparison operator or regex to compare $lauthor to some other variable or string , see perlintro

      Thank you for your suggestion.

      I would like to filter by $name, as that field is the person who posted the initial forum message. I can't figure out the logic needed to display the information like this:

      • display three (3) of the latest forum messages
      • from the forums specified within the script
      • categorized and listed by the authors (moderators) with their pictures, also specified within the script

      Quite honestly, I posted here as I don't have the necessary advanced skills to complete this non-profit volunteer project. Thanks again to the Perl Monks community for your feedback, suggestions and patience. I hope to find a coding solution for this Perl new.cgi program.

        Quite honestly, I posted here as I don't have the necessary advanced skills to complete this non-profit volunteer project. Thanks again to the Perl Monks community for your feedback, suggestions and patience. I hope to find a coding solution for this Perl new.cgi program.

        Read perlintro and you'll have the skills to write the solution