Perlscript

Posted by Kelvin on Wed 27 Feb 2002 02:54 PM — 11 posts, 43,957 views.

#0
Can perlscript do everything Jscript and Vbscript can?
#1
This question is somewhat silly. :P

What exactly are you worried about not being able to use in Perlscript? For what I do, I use Perlscript exactly like I would use Perl. Perlscript differs from Perl because it is an ActiveX scripting host etc etc, but I don't think there are many functional differences between the two...especially between Perlscript and Win32 Perl from ActiveState. Perlscript, after all, is provided by ActiveState.

If your question was: "Is Perl as powerful as Jscript and VBScript?" The answer would be a resounding YES. Perl is extremely powerful, and has a huge userbase. Check out www.cpan.org for an idea of the amount of code available for use by the perl community.

If you have a more specific question, I'm sure someone can help you.

Dub.
Australia Forum Administrator #2
The example files supplied with MUSHclient show the Perlscript examples doing what the VBscript and Jscript ones do.

I am not an expert on Perl, however Perl is known to be very strong on string manipulation, which is what you want to do a lot in MUD scripts (eg. breaking up a line into bits, putting it together, searching, replacing, and so on).

As for the MUSHclient functions, like world.note, they are all available whatever language you use.
#3
When I download perl from activestate i clicked on he download file and the computer condouldn't read it, and What does it do anyways?
Australia Forum Administrator #4

Sounds like you downloaded the file ActivePerl-5.6.1.631-MSWin32-x86.msi but don't have the Windows Installer 1.1+, which reads .msi files.

You can either download the Windows Installer 1.1+, install that, and then try installing Perlscript again.

Alternatively, their download page also had a .zip version of the file, which you can install just by unzipping it (and following any instructions).

If this (forum) message is old, the links above may become out-of-date, however the general principle will still apply. Go to the Active Perl Download page and follow their instructions.

Amended on Thu 28 Feb 2002 09:01 PM by Nick Gammon
#5
Will my perlsripts still work even if I don't have the download?
Australia Forum Administrator #6
Perlscript is implemented in a DLL - the one available from that site. If you don't have the DLL I doubt it will work, unless it is already there for some reason.
#7
So where do I write my script in activeperl or notepad?
Australia Forum Administrator #8
Sounds like you might be a bit of a beginner to scripting. It might help to browse a web site, or find a book at the local technical book shop, which introduces scripting. You will probably find that very helpful.

To answer your question, you would use a text editor (MUSHclient contains one built-in), or the Windows Notepad, or virtually any other editor that writes out text files, to write the "source" of your script (ie. the Perlscript words), and then when you tell MUSHclient to use that script it will execute it at the appropriate time, using the Perlscript DLL.
#9
So do I need to do anything after I install it or do I just run the scripts I have?
Australia Forum Administrator #10
I'm not sure what scripts you have. They would need to be designed to work with MUSHclient or they won't do much. For example, a trigger might call a script to do something special.