/gist:4870f14c5f384e663daa Secret
Created
June 27, 2012 09:27
Star
You must be signed in to star a gist
This file contains 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
| BEFORE | |
| for dir($path) -> $name { | |
| if "$path/$name".IO ~~ :f && $name ~~ /^ (\w+) '.cs' $/ { | |
| @found.push($0); | |
| } | |
| } | |
| AFTER | |
| for dir($path) -> $name { | |
| if $name.f && $name.Str ~~ / '/' (\w+) '.cs' $/ { | |
| @found.push($0); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment