I feel obliged to point out that this is an insane way to do this. The security implications, the fact that that you have undefed $/ without localization, the fact that you are potentially reading in a huge file to memory all make this a very bad solution.
Sorry.
--- demerphq
my friends call me, usually because I'm late....