Using the caller() in Perl 5 one can figure out if the file was loaded as a module or executed as a script.
In Python one could check if __name__ is equal to "__main__". Is there some way in Perl 6 to tell if a file was executed directly or loaded into memory as a module? regards Gabor