Yeah, I know - I'm trying to get away from running seperate routines for different OS's and find a non OS specific command. Using the NET::grpnetworks does what I am trying to do - just got it to work now. Thanks all.
update
Just thought I would mention GRPNETWORKS doesn't actually give you the default IP gateway - it does do what I was attempting (in a roundabout way) to do.