text_combined: duane hill rmlijyournetpluscom fri 15 feb 2008 173409 0800 marc perkel wrote place easily query whois information determine mass scale old domain dont know say dont query whois network solutions possible availability domain register lock domain short period time must register period __ _ hfcogqhuoisolutionnl sat apr 26 154955 2008 messageid 2008021614414015076qmaillistsdeveloopercom soiofdvxgperlorg drruud subject printing text two blank lines date sat 16 feb 2008 153952 0100 mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit gunnar hjalmarsson schreef tgxmhanwhkmeavgmailcom data text file important thing want extract two blank lines assuming data slurped _ print 1n nnnng nblanknnblankn blank includes blanks affijn ruud gewoon een tijger llgnioiicamalacbdeio contenttype messagerfc822 contentdisposition inline filenamebeginners_98792ezm uiaregigunnarcc sat apr 26 154955 2008 messageid 2008021618040223823qmaillistsdeveloopercom soiofdvxgperlorg date sat 16 feb 2008 190600 0100 gunnar hjalmarsson mimeversion 10 subject printing text two blank lines contenttype textplain charsetiso88591 formatflowed contenttransferencoding 7bit drruud wrote gunnar hjalmarsson schreef tgxmhanwhkmeavgmailcom data text file important thing want extract two blank lines assuming data slurped _ print 1n nnnng nblanknnblankn blank includes blanks right however zerowidth assertion pattern important case two consecutive important things text text important line important line text text gunnar hjalmarsson email httpwwwgunnarcccgibincontactpl llgnioiicamalacbdeio contenttype messagerfc822 contentdisposition inline filenamebeginners_98794ezm hfcogqhuoisolutionnl sat apr 26 154955 2008 messageid 2008021710404819235qmaillistsdeveloopercom soiofdvxgperlorg drruud subject printing text two blank lines date sun 17 feb 2008 113752 0100 mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit gunnar hjalmarsson schreef drruud gunnar hjalmarsson plaguemagazine data text file important thing want extract two blank lines assuming data slurped _ print 1n nnnng nblanknnblankn blank includes blanks right however zerowidth assertion pattern important case two consecutive important things text text important line important line text text easy code new perl 510 regex functionalities done well split usrbinperl use strict use warnings local n say slurp mode print grep n split nblankn __data__ text text important line important line text text important test big files slurping aint nice flagging approach n 0 nonempty lines count b buffer blank print b n 1 prints lonely lines start n 0 next b _ n print b n 1 print lonely line end affijn ruud gewoon een tijger llgnioiicamalacbdeio contenttype messagerfc822 contentdisposition inline filenamebeginners_98781ezm kcytkjqecbgmailcom sat apr 26 154955 2008 soiofdvxgperlorg kcytkjqecbgmailcom subject excel type sorting date fri 15 feb 2008 133628 0800 pst messageid 1f708ad6f07f457295978108ff1c1758n77g2000hsegooglegroupscom mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit im trying figure excel type sort perl cant seem find anything specifically want goes imagine 3 columns numbers b c want sort descending order starting column column b column c thing dont want order change sorting b dont want order b change sorting c idea way arrays hashes llgnioiicamalacbdeio contenttype messagerfc822 contentdisposition inline filenamebeginners_98790ezm abkstonehengecom sat apr 26 154955 2008 messageid 31086b240802160805r5c045116uc5ec67e5efeb4371mailgmailcom date sat 16 feb 2008 080506 0800 tom phoenix kcytkjqecbgmailcom subject excel type sorting cc soiofdvxgperlorg mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit feb 15 2008 136 pm wrote im trying figure excel type sort perl cant seem find anything specifically want goes think want sort multiple criteria nothing excel imagine 3 columns numbers b c want sort descending order starting column column b column c thing dont want order change sorting b dont want order b change sorting c sort criterion thats tie go use criterion b finally c thats single sort operation using sort sub something like sub sort_by_abc aa cmp ba ab cmp bb ac cmp bc course thats probably way criteria stored give general idea httpperldocperlorgfunctionssorthtml good luck tom phoenix stonehenge perl training llgnioiicamalacbdeio contenttype messagerfc822 contentdisposition inline filenamebeginners_98791ezm ahlgrwhsvgmailcom sat apr 26 154955 2008 messageid 58ce48dc0802160936he961121r16924ce3e41b12e1mailgmailcom date sat 16 feb 2008 123635 0500 chas owens kcytkjqecbgmailcom subject excel type sorting cc soiofdvxgperlorg mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit feb 15 2008 436 pm wrote im trying figure excel type sort perl cant seem find anything specifically want goes imagine 3 columns numbers b c want sort descending order starting column column b column c thing dont want order change sorting b dont want order b change sorting c idea way arrays hashes snip sorting array arrays b contain array references sorting array hashes works way b hash references whether use array arrays array hashes depends things sort general try use hashes represent records makes code selfdocumenting however data lends arrays arrays usrbinperl use strict use warnings aoa foo 1 34 foo 2 2 bar 3 10 bar 3 2 baz 4 0 aoa sort a0 cmp b0 a1 b1 a2 b2 aoa print aoan row aoa print trown aoh name foo pos 1 value 34 name foo pos 2 value 2 name bar pos 3 value 10 name bar pos 3 value 2 name baz pos 4 value 0 aoh sort aname cmp bname apos bpos avalue bvalue aoh print aohn row aoh print trowqwn chas owens wonkdennet important skill programmer ability read llgnioiicamalacbdeio contenttype messagerfc822 contentdisposition inline filenamebeginners_98785ezm kcytkjqecbgmailcom sat apr 26 154955 2008 soiofdvxgperlorg kcytkjqecbgmailcom subject hash values array indexes inside arrays date fri 15 feb 2008 215711 0800 pst messageid 48037f3c021f4cb49d417f8dbc45c52ei7g2000prfgooglegroupscom mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit im trying find way convert use array indexes values doesnt seem work data crc 56 overrun 1 inputerr 45 crc 56 overrun 7 inputerr 4 crc 33 overrun 7 inputerr 4 following code wont load array hashes like explicitly putting crcerrs qw 56 56 33 67 22 11 88 94 452 334 67 65 2 3 3 3 overrunerrs qw 1 7 7 7 9 13 8 8 22 18 24 24 30 66 66 66 inputerrs qw 45 4 4 4 4 45 45 45 45 45 45 45 3 2 1 12 0 15 data crc crcerrsi overrun overrunerrsi inputerrs inputerrsi llgnioiicamalacbdeio contenttype messagerfc822 contentdisposition inline filenamebeginners_98786ezm efzrzixgmailcom sat apr 26 154955 2008 messageid 18c1e5f20802160546r7275eba4ia52cb9cf234dab5dmailgmailcom date sat 16 feb 2008 214619 0800 j peng kcytkjqecbgmailcom subject hash values array indexes inside arrays cc soiofdvxgperlorg mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit feb 16 2008 157 pm wrote data crc crcerrsi overrun overrunerrsi inputerrs inputerrsi overide array time need push loop push data good luck llgnioiicamalacbdeio contenttype messagerfc822 contentdisposition inline filenamebeginners_98788ezm hfcogqhuoisolutionnl sat apr 26 154955 2008 messageid 2008021614363811627qmaillistsdeveloopercom soiofdvxgperlorg drruud subject hash values array indexes inside arrays date sat 16 feb 2008 153514 0100 mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit kcytkjqecbgmailcom schreef following code wont load array hashes like explicitly putting crcerrs qw 56 56 33 67 22 11 88 94 452 334 67 65 2 3 3 3 backslash affijn ruud gewoon een tijger llgnioiicamalacbdeio contenttype messagerfc822 contentdisposition inline filenamebeginners_98793ezm fkxetbgmailcom sat apr 26 154955 2008 soiofdvxgperlorg paul lalli subject hash values array indexes inside arrays date sat 16 feb 2008 130127 0800 pst messageid 52360865c4064b63b815acffc98cc31f64g2000hswgooglegroupscom mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding quotedprintable feb 16 935a0am rvtolnisolutionnl drruud wrote ezsupergmailcom schreef following code wont load array hashes like explicitly putting i4crcerrs 3d qw 56 56 33 67 22 11 88 94 452 334 67 65 2 3 3 3 backslash mind whats wrong backslash perl le foo 3d qw b c print foo b c paul lalli llgnioiicamalacbdeio wed 06 aug 2008 095925 0000 whois info