[boulder.pm] next in a for loop?

Pete Krawczyk petek at bsod.net
Tue Jun 19 09:44:00 CDT 2001


Date: Mon, 18 Jun 2001 21:50:44 -0600
From: skazat <jsimoni at totalsite.com>
Subject: Re: [boulder.pm] next in a for loop?

}This will skip whatever $_ is on if it actually does have a value, instead,
}just say:
}
}           next unless ($i =~ /^$/);

No.  That says, "go back to the top of the loop unless $i is empty".

The point is that it was processing when $i was empty, and it shouldn't.

-Pete K
-- 
Pete Krawczyk
  petek at bsod dot net
  http://www.bsod.net/~petek/




More information about the Boulder-pm mailing list