Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Tue May 25, 2004 1:45 am |
Well, there's actually a distinction between Perl scripting and the Perl regular expressions now used in zMUD.* Perl regular expressions are what is used here as zMUD is now using them internally.
When you type in a trigger pattern, zMUD will use it for just long enough to change it into a Perl regular expression... once it's in that form, it will be parsed much quicker than has been possible in the past.
Since this is all done automatically, you don't need to do anything (including click the Convert button). If you _do_ decide to convert a trigger, then the familiar zScript pattern syntax will be replaced with Perl's and you can modify it directly.
However, there's no problem with not converting a trigger... while zMUD will convert it internally to parse it, it will save this result so it doesn't have to keep converting every time it parses it so there's no real performance reason to convert all of your triggers. The option is really there so that people who are more comfortable with Perl regular expressions can edit them directly.
* To use Perl scripting in zMUD, one can download ActiveState's ActivePerl distribution, click on MSScript for an alias/trigger/whatever and type in PerlScript for the language. |
|