ok, how would i search a var @lots_of_lines for a piece of data that starts with lets say <+0+> and ends with <-0->?
i know how to look for <+0+> and write that line, but i don't know how to write that line and all the other lines between the <+0+> <-0-> marks.
thank you for your time.
~Nate_Bro
this is how i get the one line...
i know how to look for <+0+> and write that line, but i don't know how to write that line and all the other lines between the <+0+> <-0-> marks.
thank you for your time.
~Nate_Bro
this is how i get the one line...
Code:
@lots_of_lines;
for ($i = 0; $i <= $#lots_of_lines; $i++){
if ($lots_of_lines[$i] =~ <+0+>){
print "$lots_of_lines[$i]";
}
}