You can try to use this to clean up the output instead of the left statepemts

code:

$mygw=split($mygw,"|")
? "My Gateways are: " for each $gw in $mygw "$gw " next

_________________________
How to ask questions the smart way <-----------> Before you ask