You can use next to skip the rest of an iteration in a loop:
while( ... ) { ... next if <something>; ... }
The <something> is treated as an expression. Expressions can be $variable =~ /<regex>/ or just a single variable, which evaluates to false if undef, 0 or ''.
In reply to Re^3: parse array to replace specific spaces with pipes
by mzedeler
in thread parse array to replace specific spaces with pipes
by neurotoxx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |