in reply to using unless($code == 200)....
if ($response == 200) { # } elsif ($response == 500) { next; # or last, or whatever. } else { # default }
just as in english, it's generally more clear to ask in the affirmative: "is it raining?" vs. "it is not raining, is it"? that's often applicable for your code as well with if vs. unless.next if ($response == 500);
also fyi, goto needs a label (or expression that returns a label), not another keyword. if you'd use strict and -w, you'd probably catch these things...
cheers..
|
|---|