in reply to Program Comments

want to know that the comments written in the Proram below, are right
52 sub display_results {        #calling a ssubroutine

Strictly speaking, this isn't calling a subroutine; it's defining one.

76 while ( $count)    #This subroutine waits for a UDP packet ...

Likewise, while is a loop construct, not a subroutine.

84 close WDW_FILE;     #closes the file

Personally, I consider comments like this one superfluous... (but it's ok if the homework assignment reads "comment every line" or some such).

(P.S. this list might not be complete...)