in reply to Best way to read a file into memory and use normal operation on memory file?

you know what, i am lucky i found out how to do this lol. because i just tried to pack almost 1000 lines of code into an exe and it wasnt working right when opening files. the function i was trying to use, was going to open a file like
my $file = PerlApp::get_bound_file("patch_file") open ( my $patch, '<', $file );

but what i needed to do was open it with
my $file = PerlApp::get_bound_file("patch_file"); open ( my $patch, '<', \$file );

the key defference is the "\". its a good thing i figured this out tho.