toprint "$file[$_]" for ($i-3 .. $i-1);
print $file[$_] for grep $_ >= 0, $i-3 .. $i-1;
In reply to Re^2: How can I print three lines before pattern match?
by ikegami
in thread How can I print three lines before pattern match?
by neurotoxx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |