Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Use of uninitialized value $pic

by Eily (Monsignor)
on Apr 24, 2017 at 09:29 UTC ( #1188745=note: print w/replies, xml ) Need Help??

in reply to Use of uninitialized value $pic

Well, the Image::Grab doesn't seem to provide any way to retrieve the error message. That's inconvenient. The documentation does indicate that you may use LWP::Simple if you're only using the base features.

$snapshot-> url( "IPCamera{$key}"); looks very suspicious. If you want to be sure of what the argument to a call is, put it in a temporary variable and use that variable twice (for printing and in the call). The reason for using a temporary variable is that if the value is a more complex expression, you might not type twice the same thing, or you may change one and forget the other. With a temp variable and strict, you're sure that what you see is what you get.

my $url = "IPCamera{$key}"; print "Trying to read from $url\n"; $snapshot-> url($url);

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1188745]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2020-10-20 20:43 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (210 votes). Check out past polls.