Re: Schwartzian Transform

2012-01-19 Thread Rob Dixon
On 18/01/2012 05:04, Jeff Peng wrote: 于 2012-1-18 11:31, Chris Stinemetz 写道: Would someone kindly advise me in sorting this array: my @array = qw(c r v vr tr re c.p[1] c.p[3] c.p[2] c.p[4] c.p[7] c.p[6] c.p[5] c.p[8] c.t[1] c.t[3] c.t[2]); I only want to sort the elements that have a numeric v

Re: Schwartzian Transform

2012-01-19 Thread Dr.Ruud
On 2012-01-18 04:31, Chris Stinemetz wrote: Would someone kindly advise me in sorting this array: my @array = qw(c r v vr tr re c.p[1] c.p[3] c.p[2] c.p[4] c.p[7] c.p[6] c.p[5] c.p[8] c.t[1] c.t[3] c.t[2]); I only want to sort the elements that have a numeric value inside the braces so that al

Re: Schwartzian Transform

2012-01-17 Thread Shlomi Fish
Hi Chris, On Tue, 17 Jan 2012 21:31:49 -0600 Chris Stinemetz wrote: > Would someone kindly advise me in sorting this array: > > my @array = qw(c r v vr tr re c.p[1] c.p[3] c.p[2] c.p[4] c.p[7] > c.p[6] c.p[5] c.p[8] c.t[1] c.t[3] c.t[2]); > > I only want to sort the elements that have a numeri

Re: Schwartzian Transform

2012-01-17 Thread Jeff Peng
于 2012-1-18 11:31, Chris Stinemetz 写道: Would someone kindly advise me in sorting this array: my @array = qw(c r v vr tr re c.p[1] c.p[3] c.p[2] c.p[4] c.p[7] c.p[6] c.p[5] c.p[8] c.t[1] c.t[3] c.t[2]); I only want to sort the elements that have a numeric value inside the braces so that all the

Re: Schwartzian Transform

2012-01-17 Thread Rob Dixon
all the other elements have their original index preserved. Sample output I am trying to accomplish: c r v vr tr re c.p[1] c.p[2] c.p[3] c.p[4] c.p[5] c.p[6] c.p[7] c.p[8] c.t[1] c.t[2] c.t[3] Is this a good example to use Schwartzian Transform? Thanks in advance, Hi Chris Not really. The

Schwartzian Transform

2012-01-17 Thread Chris Stinemetz
preserved. Sample output I am trying to accomplish: c r v vr tr re c.p[1] c.p[2] c.p[3] c.p[4] c.p[5] c.p[6] c.p[7] c.p[8] c.t[1] c.t[2] c.t[3] Is this a good example to use Schwartzian Transform? Thanks in advance, Chris -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For