Created
May 31, 2013 07:19
-
-
Save xtetsuji/5683377 to your computer and use it in GitHub Desktop.
"Markline", perl interepreter's magic comment(?), concept code.
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/perl | |
| use strict; | |
| use warnings; | |
| # ordinally comment. | |
| sub foo { | |
| print "foo\n"; | |
| } | |
| print fo0(); # typo | |
| exit; | |
| __END__ | |
| Result of Execution: | |
| $ ./markline-off.pl | |
| Undefined subroutine &main::fo0 called at ./markline-off.pl line 11. |
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/perl | |
| use strict; | |
| use warnings; | |
| #line 1 dummy.pl | |
| sub foo { | |
| print "foo\n"; | |
| } | |
| print fo0(); # typo | |
| exit; | |
| __END__ | |
| Result of Execution: | |
| $ ./markline-on.pl | |
| Undefined subroutine &main::fo0 called at dummy.pl line 5. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment