Created
April 21, 2012 21:03
-
-
Save tadzik/2439577 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
335 # act as --help too if we have MAIN defined | |
336 say($*W.symbol_lookup(['$?USAGE'], $/)); | |
337 if $*UNIT.symbol('&MAIN') { | |
338 $block.push( | |
339 PAST::Op.new( | |
340 :pasttype<call>, :node($/), | |
341 :name('&say'), | |
342 $*W.symbol_lookup(['$?USAGE'], $/) | |
343 ) | |
344 ) | |
345 } | |
Prints: | |
Capture[0x2bd3840] | |
Could not find symbol '$?USAGE' | |
in block <anon> at test2.pl:10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment