On Wed Apr 01 11:46:59 2015, barto...@gmx.de wrote: > This was answered recently on SO: > http://stackoverflow.com/questions/29281305/how-do-i-make-a-modulino- > in-perl6 > > The recommended solution was "to add MAIN to the module and import it > into the script's mainline. This way, everything declared within the > module is visible within MAIN without having to explicitly export > everything: > > module main { > sub process(@filenames) { > for @filenames -> $filename { > say "Processing '$filename'"; > } > } > > sub MAIN(*@filenames) is export(:MAIN) { > process(@filenames); > } > } > > import main :MAIN;
Based on bartolin's last comment, closing this ticket. -- Will "Coke" Coleda