in reply to Undefined Subroutine

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^2: Undefined Subroutine
by Anonymous Monk on May 25, 2006 at 06:44 UTC
    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

      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?
      Above post by evgen88
Re^2: Undefined Subroutine
by ysth (Canon) on May 25, 2006 at 22:55 UTC
    I almost never downvote SoPW threads, but I feel that this case calls for special consideration.
    Could you explain why?
    Incidently, who are the (at least 3) people who -upvoted- the thread? Can we say vote spam?
    More than 3 now. What do you mean, "vote spam"?
Re^2: Undefined Subroutine
by sarani (Sexton) on May 27, 2006 at 04:50 UTC
    Why would you want to downvote this thread?