If you are on windows, just do something like:
subst p: \perl\bin
Then your perl bin directory becomes your p: driver. Perl will pick it just as a physical driver.
As for in memory file, unfortunately it is not in 5.6.1. Check perldelta of 5.8.0, under Core Enhancement/Perl IO is now the default.