I had it on my board a log time ago, I think back then I was using 5.47, and from memory it worked fine the first time. I also had about 30 outher hacks on my board, so I think you should tabe a break from it, then read it again, carefully! and give it another go.
# push(@INC,'/myabpath/public_html/cgi-bin/Ubbpoll');
push(@INC,$poll_path); # will only work with cp-extensions !
require 'UBBPoll.pl';
ubb_poll();
#END POLL ADD
all the above bit is doing is pushing a variable into an array, requiring the UBBPoll.pl file so it can use subs/functions and variables from there in your Ultimate.cgi
Try using the first push statement, the one thats commented out, and comment out the second one (be sure to modify the path)
And it doesnt need to go in the print statement.
Hope this helps.