[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Perl Question
- Subject: [ale] Perl Question
- From: tj at atlantageek.com (Tommie M. Jones)
- Date: Mon, 16 Oct 2000 16:02:39 -0400 (EDT)
>
> while( <> ) {
> if( /somepattern/ ) {
> my $nextline = <>;
> print $_, $nextline;
> }
> }
Here is my contribution
Ithis shold work
$/=undef;
$input=<>;
my @arr;
# Grepping for the word 'is'
if (@arr = $txt =~ /\n?.*?is.*?\n.*?\n/g)
{
print @arr;
}
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.