/^>>/ 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 /^>>/;
In reply to Re^2: searching the strings
by blazar
in thread searching the strings
by singam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |