I don't see how this all relates to $/. That variable controls what a <FILEHANDLE> or readline(FILEHANDLE) considers a line ending, which you don't use.
Then you use chomp which also respects $/, but since $/ is undef, it doesn't do anything.
Perl 6 - links to (nearly) everything that is Perl 6.