Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
kyishi
Novice


Joined: 08 Oct 2003
Posts: 31
Location: United Kingdom

PostPosted: Mon May 24, 2004 8:20 pm   

Perl Stuff
 
What exactly does this perl scripting do, and also what hapens when you tick the 'Perl regular expression' and when you press convert button on triggers?
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net