Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Scrapper outputing error -w

by InfiniteSilence (Curate)
on Apr 11, 2011 at 17:44 UTC ( [id://898741] : note . print w/replies, xml ) Need Help??

in reply to Scrapper outputing error -w

If you can, get out of the habit of relying on global variables in functions like that. It is a sure fire way to get confused about what is happening in your code.

In the debugger enter a session on your script and immediately do this:

b switch_properties r
When you get into the switch properties code step down until you hit the offending 'get' line and then do this:
p $device
What do you see?

Celebrate Intellectual Diversity