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*

4
  • 1
    \$\begingroup\$ Nicely done! . . . \$\endgroup\$ Commented Apr 19, 2013 at 16:19
  • \$\begingroup\$ Fails for a file that begins with the code, e.g. (cat id.pl; echo foo)|perl id.pl \$\endgroup\$ Commented Apr 20, 2013 at 5:27
  • \$\begingroup\$ @GeoffReedy, thanks; the program did not handle multi-line input before. It is corrected now. \$\endgroup\$ Commented Apr 20, 2013 at 7:56
  • \$\begingroup\$ Darn, is this code bowling? \$\endgroup\$ Commented Jul 26, 2017 at 14:08