$world->send doesn't run the alias engine. What can I do?

KildClient forum.
Post Reply
Schmorgluck
Posts: 8
Joined: Fri Dec 12, 2014 2:43 pm

$world->send doesn't run the alias engine. What can I do?

Post by Schmorgluck »

I understand that it's its intended behavior, but $world->send not running what it sends through the aliases engine makes it a nightmare for me to develop a script I need.
Is there an alternative way to do it that I missed in the documentation?
ekalin
Site Admin
Posts: 45
Joined: Sun Feb 05, 2012 3:59 pm

Re: $world->send doesn't run the alias engine. What can I do?

Post by ekalin »

Well, you have the full power of Perl, so you can do any kind of substitution you want.

But that's not really convenient if you want to use the same aliases available for interactive use. Fortunately there's the $world->expandaliases() function, that expands aliases as if they had been typed in the input box.
Schmorgluck
Posts: 8
Joined: Fri Dec 12, 2014 2:43 pm

Re: $world->send doesn't run the alias engine. What can I do?

Post by Schmorgluck »

Argh, thanks! I really should have searched the word "alias" on the "$world reference" page.
Post Reply