RayRay459 has asked for the wisdom of the Perl Monks concerning the following question:
i need to add another condition to this...i need it to skip to the next entry in the inFile if($response == 500). I tried adding another if statement inside the block that looked like this:while (<IN>) { $url = $_; $response = 0; unless($response == 200) { yada yada yada yada.. } }
Does anyone know of a way that i can have it skip the current value of $_ and have it move on to the next line in the inFile. Any help would be appreciated.if($response == 500) { goto next; } I also tried just next; and that didn't work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using unless($code == 200)....
by chromatic (Archbishop) on Sep 12, 2001 at 21:40 UTC | |
|
Re: using unless($code == 200)....
by dragonchild (Archbishop) on Sep 12, 2001 at 21:37 UTC | |
|
Re: using unless($code == 200)....
by demerphq (Chancellor) on Sep 12, 2001 at 21:44 UTC | |
|
Re: using unless($code == 200)....
by acid06 (Friar) on Sep 12, 2001 at 21:50 UTC | |
|
Re: using unless($code == 200)....
by seesik (Initiate) on Sep 12, 2001 at 21:44 UTC | |
|
Re: using unless($code == 200)....
by broquaint (Abbot) on Sep 12, 2001 at 21:49 UTC |