in reply to Re: Trying to make a search
in thread Trying to make a search

hehe, on the idea of more "perl looking", in my opinion:
#/usr/bin/perl -w use strict; print "Letter: "; chomp(my $letter = <STDIN>); open(DATA, "books.txt") or die "error opening file $!"; while(<DATA>) { if (/^$letter/i) { print; } }

charlie schmidt
ishamael@themes.org
www.diablonet.net/~ishamael/