in reply to Re: searching the strings
in thread searching the strings
/^>>/ and do { print "error message\n"; next };
I like to use short-circuiting logical operators for flow control, and to omit unnecessary parentheses, but I'd avoid using do like that, if possible. How 'bout the following instead?
print("error message\n"), next if /^>>/; # or (print "error message\n"), next if /^>>/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: searching the strings
by Hue-Bond (Priest) on May 10, 2006 at 13:39 UTC | |
by ikegami (Patriarch) on May 10, 2006 at 16:18 UTC | |
by blazar (Canon) on May 11, 2006 at 08:34 UTC | |
by ikegami (Patriarch) on May 11, 2006 at 14:28 UTC |