We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrated from rt.perl.org#114354 (status was 'resolved')
Searchable as RT114354$
The text was updated successfully, but these errors were encountered:
$ perl6 -v This is perl6 version 2012.07-208-gb87659a built on parrot 4.5.0 revision RELEASE_4_5_0
$ cat script use A;
sub MAIN { say "script's MAIN"; }
$ cat lib/A.pm class A { }
sub MAIN { say "A's MAIN"; }
$ perl6 -Ilib script A's MAIN script's MAIN
S06 is pretty clear that A's MAIN shouldn't be invoked in this case:
<http://perlcabal.org/syn/S06.html#Declaring_a_MAIN_subroutine>
"This call is performed if and only if [...] the compilation unit was directly invoked rather than by being required by another compilation unit"
Sorry, something went wrong.
Fixed now, and tested in S06-other/main.t.
@moritz - Status changed from 'new' to 'resolved'
No branches or pull requests
Migrated from rt.perl.org#114354 (status was 'resolved')
Searchable as RT114354$
The text was updated successfully, but these errors were encountered: