RE: Find string ending with %
- From: tjohnson@xxxxxxxxxxxx (Timothy Johnson)
- Date: Tue, 16 Aug 2005 17:16:52 -0700
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:gjkeenan@xxxxxxxxxx]
Sent: Tuesday, August 16, 2005 5:10 PM
To: 'beginners@xxxxxxxx'
Subject: Find string ending with %
<snip>
my @oput2 = /\b([0-9]+)%/;
<snip>
.
- Follow-Ups:
- Re: Find string ending with %
- From: John W. Krahn
- Re: Find string ending with %
- Prev by Date: Re: Unitialized value in hash element problem...
- Next by Date: Unitialized value in hash element problem...
- Previous by thread: Re: Find string ending with %
- Next by thread: Re: Find string ending with %
- Index(es):
Relevant Pages
|
|