Created
December 16, 2009 18:44
-
-
Save masak/258056 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
$ cat MAINtest | |
sub MAIN($a, $b = 1) { | |
say '$a ', $a; | |
say '$b ', $b; | |
} | |
$ perl6 MAINtest | |
Not enough positional parameters passed; got 0 but expected between 1 and 2 | |
in Main (file src/gen_setting.pm, line 324) | |
$ perl6 MAINtest f | |
$a f | |
$b 1 | |
$ perl6 MAINtest f 2 | |
$a f | |
$b 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment