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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

errant continue statements

Status
Not open for further replies.

mcguinne

Technical User
Dec 19, 2001
33
0
0
IE
In the following code I am having trouble using the continue statement:

while ($more)
{
if (read IPFILE, $alarm, 10)
{
if (read IPFILE, $workorder, 8)
{
if (read IPFILE, $errcodes, 50)
{
open OPFILE, "> ${minenv_run}/work/arts/outgoing/${alarm}.T
";
printf(OPFILE "%s", $errcodes);
close OPFILE;
rename "${minenv_run}/work/outgoing/${alarm}.T",
"${minenv_run}/work/outgoing/${alarm}.E";
# continue;
}
else
{
open OPFILE, "> ${minenv_run}/work/arts/outgoing/${alarm}.T
";
printf(OPFILE "%s", $workorder);
close OPFILE;
rename "${minenv_run}/work/outgoing/${alarm}.T",
"${minenv_run}/work/outgoing/${alarm}.C";
# continue;
}
}

Any help gratefully received
 
Hi there,

Try the 'next' statement, 'continue' is only in C.

Mike

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

It's like this; even samurai have teddy bears, and even teddy bears get drunk.
 
Thanks Mike - that seeme to have done it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top