You are here: PSPad forum > English discussion forum > Re: How to sort Perl variables?

Re: How to sort Perl variables?

#1 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.

Options: Reply | Quote | Up ^


#2 Re: How to sort Perl variables?

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

Options: Reply | Quote | Up ^


#3 Re: How to sort Perl variables?

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.

Options: Reply | Quote | Up ^


#4 Re: How to sort Perl variables?

Posted by: pspad | Date: 2014-06-17 17:38 | IP: IP Logged

Options: Reply | Quote | Up ^






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