You could do it in Mapscript pretty handily. For each house/pole pair, compute starting and ending points of your line with basic trig. Draw that line. Compute its angle. Draw an arrowhead at the ending point, rotated to the proper angle.