Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ Perlscript
➜ Perlscript
Posting of new messages is disabled at present.
Refresh page
Posted by
| Kelvin
(12 posts) Bio
|
Date
| Wed 27 Feb 2002 02:54 PM (UTC) |
Message
| Can perlscript do everything Jscript and Vbscript can? | Top |
|
Posted by
| Dubthach
(47 posts) Bio
|
Date
| Reply #1 on Wed 27 Feb 2002 03:43 PM (UTC) |
Message
| 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #2 on Wed 27 Feb 2002 09:06 PM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Kelvin
(12 posts) Bio
|
Date
| Reply #3 on Thu 28 Feb 2002 09:26 AM (UTC) |
Message
| 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? | Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #4 on Thu 28 Feb 2002 08:58 PM (UTC) Amended on Thu 28 Feb 2002 09:01 PM (UTC) by Nick Gammon
|
Message
| 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.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Kelvin
(12 posts) Bio
|
Date
| Reply #5 on Mon 04 Mar 2002 01:34 PM (UTC) |
Message
| Will my perlsripts still work even if I don't have the download?
| Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #6 on Mon 04 Mar 2002 08:27 PM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Kelvin
(12 posts) Bio
|
Date
| Reply #7 on Wed 06 Mar 2002 01:19 PM (UTC) |
Message
| So where do I write my script in activeperl or notepad? | Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #8 on Wed 06 Mar 2002 09:27 PM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Kelvin
(12 posts) Bio
|
Date
| Reply #9 on Thu 07 Mar 2002 02:00 AM (UTC) |
Message
| So do I need to do anything after I install it or do I just run the scripts I have? | Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #10 on Thu 07 Mar 2002 08:49 PM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
30,926 views.
Posting of new messages is disabled at present.
Refresh page
top