The (really) basic approach I'd take in any language would be:
- Establish connection with peer
- Start image capture and push thread
- Start chat thread
- Grab images from other side as they're pushed over and display them
In any case, to create a video chat in Perl would be a lot of work. Is there a reason you can't use
existing software?