perl.beginners
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
perl.beginners Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Sorting and grouping question         


Author: Anjan Purkayastha
Date: May 15, 2008 10:13

Hi,
here is a problem I'm working on. It's not PERL-specific, rather it is a
problem in sorting followed by grouping.
Suppose I have a set of lines that have tab-delimited text, thus:
1 w 3 wer
2 a 4 rte
4 w 2 weg
6 d 4 fhg
5 d 7 dfl
6 w 4 ald
8 a 3 dsl

I would like to first sort the lines based on the 2nd token (w,a, w, d, etc)
and then group the lines based on the 2nd token.

At the end of this sorting/grouping I should have the lines grouped thus:
2 a 4 rte
8 a 3 dsl

6 d 4 fhg
5 d 7 dfl
Show full article (1.07Kb)
1 Comment
  website         


Author: Oryann9
Date: May 15, 2008 08:42

Does anyone know what happened to this website: http://web.archive.org/web/20041123005900/http://www.raycosoft.com/rayco/support/perl_tutor...
It says its not available. I thought it was a great reference and explained the diffs between map and grep and even sort.
Does anyone have a softcopy of its data that you can send me?

thank you!

6 Comments
  Re: How to get perl (for Windows) with modules like OLE and Spreadsheet and such included         


Author: Gunnar Hjalmarsson
Date: May 15, 2008 06:34

roger61611@yahoo.com wrote:
> Hello, Is there someplace I can get perl (for Windows) with modules
> like OLE and Spreadsheet and such included already ? The PC here is
> sort of old and it would be neat to just download oerl (w/ modules)
> and start working vs downloading perl and then downlading/installing
> module by module.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
1 Comment