I have $rawData[$i] =~ s/>.*<//; That will replace everthing inside >
< include > and < with nothing. But, I want to replace everthing but
what is inside > and <. How can I negate what I have?
If you are trying to extract text from SGML/HTML/XML/etc. there are
easier ways. The way you are attempting will not work in many common
cases. See 'perldoc -q html' to get started.
In any case. It may help to think of the problem as "extraction" of
what's between '>' and '<', rather than "elimination" of everything
except what's between those two delimiters. I hope I understood your
request correctly.
You could do something like what's below. Again, consider using a
parser specific to your data instead of grabbing text like this.
Ted
#!/usr/bin/perl
use warnings;
use strict;
use Data:

umper;
my $text = join '', <DATA>;
my @data = ($text =~ m/>(.*?)</g);
print Dumper \@data;
__DATA__
plain text here
<><><>text here<><