# make an array containing the lines you want
push @str, "<kjsdkajsh>";
push @str, "alksjdlaksjl";
push @str, "<lakjdlsjd>";
# run grep on it
@ary = grep(/</, @str); # weed out < lines
print join "\n", @ary;
this prints the lines
<kjsdkajsh>
<lakjdlsjd>
is that what you meant? Mike
"Experience is the comb that Nature gives us after we are bald."
Is that a haiku?
I never could get the hang
of writing those things.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.