Perl not working

Jan 30, 2010
21
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.
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
> 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
 
May 20, 2008
11,378
98
Syracuse, NY, USA
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
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
12,340
149
> ---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.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Documentation TPIPE, /perl, DotMatchesNewLines Support 1
David McClelland TCMD 24 & Perl - perl thinks it's own executable is ...\TCMD24\TCC.EXE??? Support 3
vefatica Embedded perl and stdout? Support 9
jbanaszczyk Non ActiveState Python/Perl Support 4
R How to? use @everything perl regex Support 2
vefatica TPIPE's /perl option? Support 1
I perl output is not visible Support 4
mikea Perl and tcc (redux) Support 7
mikea How to? TCC 15: popup windows; launching Perl scripts Support 10
M Missing PERL command-line arguments Support 1
David McClelland Perl/Tk problem with TCC (13&14) Support 3
D Documentation @PERL Support 6
epement Strawberry Perl batch file errors Support 15
David McClelland Invoking TCC FROM Perl 5.12 Support 3
M @Perl on 64bit W7 Support 7
L redirection to/by perl acts bizarrely Support 9
B @PERL[expression] definition? Support 2
J How does tcc search for perl*.dll Support 1
H TTC Equivalent to Perl `One-Liner' Support 3
vefatica 9.02.156 and Perl Support 4
J @PERL and ^C Support 4
twaterloo FolderMonitor for the 1st time not working Support 5
Tim Rowe NTFS Descriptions not working Support 13
J Batcomp still not working for me in TCMD27 Support 1
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
M Why did BEEP just quit working? Support 12
cgunhouse SETLOCAL not working in BDEBUGGER Support 9
nickles ANSI Colors Windows 7 no longer working Support 6
K ANSI Not Working Support 8
thorntonpg option /u not working The directory name is invalid Support 5
Charles Dye Is the "File Associations" installer dialog working? Support 4
H @ceiling @floor @int not working version 21.01.63 Support 9
K Command Line Selection Not Working Support 12
G Extended directory search not working Support 4
B %@fileseek is not working ? Support 2
C "Take Command has stopped working" Support 1
H New command not working well in Windows 7 Support 4
C "TakeCommand has stopped working" Support 3
N ping DNS lookup not working Support 1
N Updater/silentall not working? Support 1
K Help Not Working Support 11
R Fixed set /r has stopped working in build 35 Support 4
U Keys and IDX not working Support 11
Jesse Heines How to? Everything Tool Not Working After Version 20 Installation Support 8
WavSlave Fixed LIST /U not working in TCC v19 Support 5
Jay Sage %_selected no longer working Support 15
S iftp copying pgp files from ftp is not working Support 11
fishman@panix.com Extended Directory Searches are not working for me in CDD Support 9
J How to set working directory Support 10
vefatica Fixed LEAVE N not working Support 7

Similar threads