If your substr is wrong then Richard's string to numeric suggestion still will not help you. Try printing out the value of $DHCPaddress and the result of your substr to see to verify that you are getting the proper text (last octet) before you apply Richard's suggestion.

[ 27. May 2003, 17:27: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/