On 1/24/06, Chris <[EMAIL PROTECTED]> wrote: > Hi list, > > 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. > > Thanks! >
I think what you are looking for is the $/ variable. Whatever you set it to is what the daimond operator uses to delimit records (by default it is \n). See "perldoc perlvar" for more info. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>