Perl not working

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jan 30, 2010
21
0
#1
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.
 

rconn

Administrator
Staff member
May 14, 2008
10,101
85
#2
> 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.
Are you using Perl 5.10, and did you enable Perl support in TCC (OPTION /
Startup / Scripting / Perl)?

Rex Conn
JP Software
 
#4
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
 
Jan 30, 2010
21
0
#8
Is that in your PATH?
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
 

rconn

Administrator
Staff member
May 14, 2008
10,101
85
#9
> ---Quote (Originally by rconn)---
> Is that in your PATH?
> ---End Quote---
>
> 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.
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.