Chris wrote:
> Hi list,

Hello,

> I am not sure if there is a proper name for this but was having some
> difficulty searching for it.
> 
> Basically I have data in a file that is between two different
> characters, for example:
> 
> # data data
> data
> data data data *
> # more dataaa
> moreeee *
> 
> Basically I want to slurp that file in, then search for # and extract
> all the data up to the * and print it, new line, next set of data.
> 
> Any pointers would be great.

>From your example it looks like you could set the Input Record Separator to
something like "*\n".


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to