Last active
June 16, 2016 02:17
-
-
Save ywindish/802466dfa8c81bcd8128 to your computer and use it in GitHub Desktop.
正規表現にuse constantした定数を埋め込む ref: http://qiita.com/ywindish/items/6fc5bb951ad587820728
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
use constant TEST_HOGE => "hogehoge"; | |
if ('hogehoge fugafuga'=~ /${\(TEST_HOGE)}/) { | |
print "matched!"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment