$_[$_] =~ s/dienice\(\"/dienice\(\"Line $counter/ for (0 .. scalar @_);
That's untested and frankly I'm a little disgusted with it myself.
In reply to Re: current array index
by chromatic
in thread current array index
by jptxs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |