IPstacks has asked for the wisdom of the Perl Monks concerning the following question:
But I'm not sure how I can get it to only print text that is after my search string.open FILE, $filename or die "Can't open file: $!/n"; while (<FILE>) { $data = <FILE>; $foo = grep $data ("--from"); print $foo; } close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array Search
by rob_au (Abbot) on Nov 14, 2001 at 07:28 UTC | |
by pike (Monk) on Nov 14, 2001 at 14:49 UTC | |
|
Re: Array Search
by lestrrat (Deacon) on Nov 14, 2001 at 07:37 UTC | |
by rob_au (Abbot) on Nov 14, 2001 at 07:44 UTC | |
|
Re: Array Search
by pike (Monk) on Nov 14, 2001 at 14:57 UTC |