Tag Archives: backslash

幾個程式語言對引號以及 backslash 解讀...

三個 P 開頭的語言... PHP: #!/usr/bin/env php <?php echo "\\\"\'", "\n"; echo '\\\"\'', "\n"; Perl: #!/usr/bin/env perl use 5.010; use strict; use warnings; INIT { $a = "\\\"\'"; $b = '\\\"\''; say $a; say $b; } __END__ Python: #!/usr/bin/env python print … Continue reading

Posted in Computer, Murmuring, Programming | Tagged , , , , | 1 Comment