in reply to Re: Re: Find
in thread Creating a text index for a text file
Hey, didn't you like my second and third solutions? ;-)#!/usr/local/bin/perl -w use strict; my %letter; while (<DATA>) { print, next if /^\s*$/; my $c = substr $_, 0, 1; print ":$c:\n" if ! $letter{$c}++; print; } __DATA__ AA ... A..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Find
by texuser74 (Monk) on Nov 27, 2003 at 02:53 UTC |