1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Perl not working

Discussion in 'Support' started by bravotango, Feb 6, 2010.

  1. bravotango

    Joined:
    Jan 30, 2010
    Messages:
    21
    Likes Received:
    0
    I have this perl script (hello.pl)
    print "Hello from ActivePerl!\n";
    If I call it in TCC it runs OK but if I try to use it in a btm script (hello.btm) I get error 'perl510.dll not found'.

    btm script looks like this
    %@perl[print "Hello world!\n";]

    TCMD.INI is configured to use PERL Regular Expression Syntax under the Advanced tab and perl510 is installed. This is on Windows7.
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    Are you using Perl 5.10, and did you enable Perl support in TCC (OPTION /
    Startup / Scripting / Perl)?

    Rex Conn
    JP Software
     
  3. bravotango

    Joined:
    Jan 30, 2010
    Messages:
    21
    Likes Received:
    0
    Yes Rex, just checked it again to be sure.
     
  4. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,782
    Likes Received:
    29
    On Sat, 06 Feb 2010 21:20:29 -0500, bravotango <> wrote:

    |---Quote (Originally by rconn)---
    |Are you using Perl 5.10, and did you enable Perl support in TCC (OPTION /
    |Startup / Scripting / Perl)?
    |
    |Rex Conn
    |JP Software
    |---End Quote---
    |
    |Yes Rex, just checked it again to be sure.

    How are you trying to use Perl statements in a BTM file? They should be wrapped
    in @PERL[].
    --
    - Vince
     
  5. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    And where is perl510.dll located?

    Rex Conn
    JP Software
     
  6. bravotango

    Joined:
    Jan 30, 2010
    Messages:
    21
    Likes Received:
    0
    In C:\Perl\bin folder.
     
  7. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    Is that in your PATH?
     
  8. bravotango

    Joined:
    Jan 30, 2010
    Messages:
    21
    Likes Received:
    0
    I think I understand. So I copied the btm file into C:/perl/bin folder and now it works from that location but is that a bug? I expected TCC to support perl regardless of path to the required dll which is obviously going to be in the perl folder.
    At least it all works now. Thanks for your help.

    Bazz
     
  9. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    It's a Windows issue (and error message), not TCC. TCC is asking Windows to
    load the perl510.dll, and on your system Windows cannot find it and displays
    the error. If you put the Perl path in your TCC PATH, or copy the dll to
    your Windows system directory everything should work OK.
     

Share This Page