Harold Castro <[EMAIL PROTECTED]> wrote:

: --- Tim Johnson <[EMAIL PROTECTED]> wrote:
:
: :
: :
: : You mean like this?  I'm not 100% sure what you're
: : asking.
: I guess not. For example,
:
: Wed Jan 12 03:50:18 PHT 2005 updating...
: Sun Jan  9 10:00:10 PHT 2005 not updating
: Fri Jan  7 09:40:14 PHT 2005 down
: Sat Jan 31 19:18:53 PHT 2004 down
: Sat Jan 31 13:25:15 PHT 2004 down
: Sat Jan 31 10:46:09 PHT 2004 not updating
:
: I just wanted to tell my program to look for those
: lines that contains both Jan and 2005 regardless of
: their positions. I've tried matching /(Jan & Dec)/ but
: it didn't worked. Any more idea?

    Have you read the documentation on regular
expressions?

if ( /Jan/ && /2005/ ) {


HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 2/1/2005
 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to