943,870 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 611
  • Perl RSS
Jul 10th, 2009
0

populate perl array from database

Expand Post »
Hi all.

Am using amavis for email scanning but got stuck somewhere in the
configuration file.

I want to add some custom code to populate an array from a postgresql database.

(Amavis and its conf are written in Perl)

Below is part of the configuration file which i want to make dynamic and populate from the database.


Perl Syntax (Toggle Plain Text)
  1. blacklist_sender_maps => [ [qw(.example.org .example.net)] ],

Currently, .example.org and .example.net are hardcoded in the conf file

Kindly advise me where should i start.. how should i proceed.
I don't even know if this possible...because am new to Perl

thanks
Reputation Points: 10
Solved Threads: 0
Light Poster
CoolAtt is offline Offline
39 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: sort files by date
Next Thread in Perl Forum Timeline: Connecting to remote server





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC