Can someone explain this to me?

From: Stan Brown (stanb_at_panix.com)
Date: 10/31/03


Date: Fri, 31 Oct 2003 16:07:42 +0000 (UTC)

I'm trying to use the Video::Capture module (which has no docs) to capture
images from multple cards. I've finally found the following snippet of
code in the perl module itself:

sub new(;$) {
my $class = shift;
my $device = shift || "/dev/video0";
my $self = bless { device => $device }, $class;

It looks like the devie needs to be passed as the 2nd argument to the new
call., and if a 2nd arg is not received it defaults to the first card.

So far so good. Probel is the example cdoe I have passes _NO_ arguments to
the new call. Any idea what the first one should be?

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin


Relevant Pages

  • Re: Can someone explain this to me?
    ... >>images from multple cards. ... and if a 2nd arg is not received it defaults to the first card. ... "They that would give up essential liberty for temporary safety deserve ...
    (comp.lang.perl.misc)
  • Re: Can someone explain this to me?
    ... >> capture images from multple cards. ... >> It looks like the devie needs to be passed as the 2nd argument to the ... "They that would give up essential liberty for temporary safety deserve ...
    (comp.lang.perl.misc)