Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Good morning people: running str

Status
Not open for further replies.

coldbohemia

Programmer
Jun 5, 2008
30
US

Good morning people:
running strawberry perl script on windows 7 64 bit from padre editor

my first perl script reads a text file and looks for a certain value within same
this works:
while (<$wsls_stormast>)

when i try to test for multiple conditions in the while loop,
the loop doesn't execute
this statement is ignored:
while (<$wsls_stormast> && !$script001::foundstore)

I'm declaring foundstore in package script001
$script001::foundstore="";
it has the empty string, which i thought would test false in the while statement

is there something wrong with my syntax?
i don't get an error when i execute the script

Thanks..
 
 http://files.engineering.com/getfile.aspx?folder=c4a50b82-237c-4885-ab88-ee29ca0da1b0&file=readstormast_ver1.pl
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top