[Phoenix-pm] A novice logs onto IRC and asks how to sort without using sort...

Scott Walters scott at illogics.org
Tue Sep 13 04:01:58 PDT 2005


Was a touch premature...

<xmath> 1 while s/^(.*\n)(.*\n)(??{$^Nge$1&&qr$\A$})/$2$1/gm;
<xmath> that's a nice final version

No, I'm not xmath, I'm just quoting him =)

-scott

On  0, Scott Walters <scott at illogics.org> wrote:
> <xmath> perl -0777 -pe '1 while s/^(.*\n)(.*\n)(??{$^Nge$1&&qr[(?!)]})/$2$1/gm'
> 
> Ask a stupid question... >=)
> 
> -scott
> 
> _______________________________________________
> Phoenix-pm mailing list
> Phoenix-pm at pm.org
> http://mail.pm.org/mailman/listinfo/phoenix-pm


More information about the Phoenix-pm mailing list