1) make patch to patch asterisk 

2) Re-Build Asterisk

3) cd to the res_perl dir (wherever you put it.  You're probably there now!)

4) If you have res_config.so installed , Edit Makefile and uncomment the line the looks like this:
   #CFLAGS += -DHAVE_RES_CONFIG
   Then you will have access to the config handler too

5) 'make; make install' "should" do it for ya.

