Just for starters, a regular expression should use the =~ operator, not the = operator.
You might have seen some examples like this: while(<INFILE>){ if($_ =~ /mybigregularexpression/){ Do something... } } Check out 'perldoc perlre'. -----Original Message----- From: Keenan, Greg John (Greg)** CTR ** [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 5:10 PM To: 'beginners@perl.org' Subject: Find string ending with % <snip> my @oput2 = /\b([0-9]+)%/; <snip> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>