Sina,
There's a FAQ in the VG General Discussion area that touches on what you're asking about. Have a look at that and then at the (very few, here) examples of using the Win32 API from with Perl.
Sorry I can't be of more help. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.