Skip to content

Instantly share code, notes, and snippets.

@lukaszx0
Created December 5, 2014 18:57
Show Gist options
  • Save lukaszx0/f7c909927f48278e5690 to your computer and use it in GitHub Desktop.
Save lukaszx0/f7c909927f48278e5690 to your computer and use it in GitHub Desktop.
perl -nle 'BEGIN { $l = 0; $SIG{ALRM} = sub { print $l; $l = 0; alarm(1) }; alarm(1) }; $l += 1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment