You are here: PSPad forum > English discussion forum > Re: How to sort Perl variables?
Posted by: therium | Date: 2014-06-16 15:37 | IP: IP Logged
I use PSPad mainly for Perl programming. This is how variables are declared in Perl. Sometimes I have a list of variables like this:
my(@a,@b,$i,$j,$l2,$newt,$old,$procname,$s,$t);
Are there just a few steps where I can use PSPad to sort them? It doesn't matter if @arrays are first or not, I just want to group the @vars and $vars together, and sort them.
Even better, if I could create a macro to sort whatever selected text this way, that would be great. I'd use it a lot.
Thanks.
Edited 2 time(s). Last edit at 2014-06-16 15:39 by therium.
Posted by: pspad | Date: 2014-06-16 16:06 | IP: IP Logged
Hello.
Use PSpad scripting and create script for you. You can use your Perl for your script if you will install Perl Windows scripting host support
Posted by: therium | Date: 2014-06-17 10:14 | IP: IP Logged
I have not heard of Perl Windows Scripting host. Where do I download it from and get more information?
Thanks.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR