Is your next question going to be
"How do I do x in shell"
where x is some perl statement involving the USE of $dgs ?
There must be a reason for opening the port, which means there's going to be more things to do with that variable once you've initialised it.
Fixing it one line at a time won't solve your problem.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005