#/usr/bin/perl -w use strict; print "Letter: "; chomp(my $letter = <STDIN>); open(DATA, "books.txt") || die "error opening file $!"; while(<DATA>) { (/^$letter/i) && print; }
In reply to Re: Trying to make a search
by Anonymous Monk
in thread Trying to make a search
by zdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |