Hi all, Can Perl regex match a string in a list (like Perl grep)? eg:- #won't work $_ = @data; my @matches = /($regx)/g; #works, but not as quite really wanted since it would show the line contains the string, not just the matched string: my @matches = grep /($regx)/, @data;
So, can Perl grep show only the matched string like Unix egrep -o or Perl regex? -- Regards, Akhthar Parvez K http://tips.sysadminguide.com/ UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity - Dennis Ritchie -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/