-
-
Save lucs/bae8c4e4101d9476b661 to your computer and use it in GitHub Desktop.
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
Playing around with regex, I stumbled upon doing this: | |
say Match.new( | |
ast => "SSS", | |
list => ( | |
Match.new( | |
ast => Any, | |
list => (), | |
hash => Map.new(()), | |
orig => "asdf", | |
to => 2, | |
from => 1 | |
), | |
Match.new( | |
ast => Any, | |
list => (), | |
hash => Map.new(()), | |
orig => "asdf", | |
to => 4, | |
from => 2 | |
) | |
), | |
hash => Map.new( | |
("" => []) | |
), | |
orig => "asdf", | |
to => 4, | |
from => 0 | |
).perl; | |
and it prints: | |
Match.new(ast => Any, list => (), hash => Map.new(()), orig => "asdf", to => 4, from => 0) | |
Is that all there is? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment