ActiveState Perl supports unique features like PerlScript ActiveX control and new Tcl and Tkx module.
But they are close-sourced products, So strawberry perl can't provide those features and can't install through CPAN.
I will show you how to steal the features from ActiveState Perl.
1.
Install Strawberry perl
2.
Get the same version of ActiveState Perl .zip file format from http://downloads.activestate.com/ActivePerl/releases/ and unzip it.
3. PerlScript
Copy ActivePerl-OOOOOO-MSWin32-OOOOO\perl\bin\PerlSE.dll to C:\strawberry\perl\bin
Run cmd.exe as administrator
cd C:\strawberry\perl\bin
Execute "regsvr32 PerlSE.dll" command. (You can uninstall it with "regsvr32 /u PerlSE.dll" command.)
* Open editor and save the following code as "test.wsf" file
<job id="test">
<script language=PerlScript>
$WScript->Echo("Hello World!");
</script>
</job>
Execute "cscript test.wsf" or double-click "test.wsf" to check to see if PerlScript works or not.
4. Tkx
Copy
ActivePerl-OOOOOO-MSWin32-OOOOO\perl\lib\Tcl.pm
ActivePerl-OOOOOO-MSWin32-OOOOO\perl\lib\Tcl\*
ActivePerl-OOOOOO-MSWin32-OOOOO\perl\lib\Tkx.pm
ActivePerl-OOOOOO-MSWin32-OOOOO\perl\lib\Tkx\*
ActivePerl-OOOOOO-MSWin32-OOOOO\perl\lib\auto\Tcl\*
ActivePerl-OOOOOO-MSWin32-OOOOO\perl\lib\auto\Tkx\*
files and the same folder structure to C:\strawberry\perl\site\lib folder.
ActivePerl-OOOOOO-MSWin32-OOOOO\perl\bin\tkx-ed
ActivePerl-OOOOOO-MSWin32-OOOOO\perl\bin\tkx-ed.bat
ActivePerl-OOOOOO-MSWin32-OOOOO\perl\bin\tkx-prove
ActivePerl-OOOOOO-MSWin32-OOOOO\perl\bin\tkx-prove.bat
files to C:\strawberry\perl\site\bin folder.
Run tkx-ed to check to see if Tkx works or not.
WARNING:
USE AT YOUR OWN RISK. :)
댓글 없음:
댓글 쓰기