PSPad 4.5.8 on Windows. The "Help" option under the Help menu is grayed out so I
couldn't use it. 

I want to sort Perl variable declarations. One unsorted declaration could look
like this: 

my($c,$desc,$a,$weight, $com);

I would want to sort it to look like this: 

my($a,$c,$com,$desc,$weight);

Another declaration might look like this: 

my($c,$desc,$a,$weight, $com,
$stuff,$model,$height);

The sorted output might look like this: 

my($a,$c,$com,$desc,$height,$model,$stuff,$weight);

Is there a way to shell out to Perl and pass the selected text as the command
line to the perl program? The call to the Perl program would look like this: 

perl sortvar.pl 'selected text'


Thank you.

-- 
<http://forum.pspad.com/read.php?2,67281,67281>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem