Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    This code does nothing on my system (perl 5.18.1). But my perl knowledge is too limited to debug that. Looks like the code is only executed once, not for each line. Commented Oct 6, 2016 at 9:53
  • 1
    @rudimeier, mystery solved I think.. no wonder I've others complain in some form or other before too.. need to explicitly add -n option for that version.. can you try with perl -nale ? Commented Oct 6, 2016 at 9:59