Created
August 27, 2009 02:47
-
-
Save gugod/176048 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl -w | |
| use strict; | |
| use warnings; | |
| use 5.010; | |
| use Devel::Declare (); | |
| sub check { | |
| my $op = shift; | |
| my $offset = Devel::Declare::get_linestr_offset(); | |
| $offset += Devel::Declare::toke_skipspace($offset); | |
| my $line = Devel::Declare::get_linestr(); | |
| say "[$line]"; | |
| } | |
| use B::OPCheck lineseq => check => \✓ | |
| say "----"; | |
| say 40; | |
| while(1) { | |
| say 41; | |
| last if rand() < 0.5; | |
| say 42; | |
| } | |
| say 43; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment