in reply to Re: Undefined Subroutine
in thread Undefined Subroutine

I have an Undefined Subroutine problem myself.
Trying to use win32:rase on XP.
Code:
use win32::RASE; $hrasconn = win32::RASE::RasDial("test"); $status = win32::RASE::RasGetConnectStatus($hrasconn); print $status;

The result:

Undefined subroutine &win32::RASE::RasDial called at C:\scripts\diates +t.pl line 2, <DATA> line 164.

Even though the following works:

perl -MWin32::RASE -e "RasDial(test) or print Win32::RASE::FormatMessa +ge"

Yes, I am a beginner. I have gone through Learning Perl a bit, I find learning by trying something I want to do works best, but not sure where to look for this one.

Code tags added by GrandFather

Replies are listed 'Best First'.
Re^3: Undefined Subroutine
by evgen88 (Initiate) on May 27, 2006 at 04:10 UTC
    My problem was due to capitalization.
    Had to be Win32.
    I get an error just trying to use RASE:
    Win32::RASE::TAPIlineGetTranslateCaps() called too early to check prototype at C:/Perl/site/lib/Win3 2/RASE.pm line 266.
    Any ideas?
Re^3: Undefined Subroutine
by evgen88 (Initiate) on May 25, 2006 at 06:46 UTC
    Above post by evgen88