develooper Front page | perl.beginners | Postings from January 2002

If statement

Thread Next
From:
Lance Prais
Date:
January 9, 2002 09:24
Subject:
If statement
Message ID:
GIELJJMIAMFAAFEBMAFDKEALCCAA.lprais@ts.checkpoint.com
I want the following statement to do something if either of this conditions
exist.  "or" Statement

if ((substr($_, 42, 7) eq "Running") || (substr($Nextline, 42, 7) eq
"Running"))

It is reading the right substrings but failing.
What am I doing wrong?




Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About