Hacker News new | past | comments | ask | show | jobs | submit login

Any Perl 6 code will have to include a `use v6;` instruction at the very top of the file, so there's no chance of Perl 5 code being confused for it. Is this what you mean?

EDIT: this was completely wrong, see below.




`use v6;` is not mandatory in Rakudo. Off the top of my head, I don't think it's mandatory in theory in Perl 6, either. However, it is widely used to mark Perl 6 code, because it gives you a nice clean error message if you accidentally try running it in Perl 5.


Oh! I could have sworn it was necessary. My bad.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: