in reply to secure file viewing

You don't really give enough information on how your app is structured (gui, cmdline, web, windows or *nix, etc). So I'll just assume it's a normal script running under *nix. Rather than doing something within perl, I would suggest you just fork/exec rview (a restricted, read only version mode of vim).

-derby