in reply to Bug in perl?
I would suggest that you use strict.pm. warnings is good as well.
Also is it possible that you, for instance, have a space in the browser URL, resulting in a filename of 'name.ts ' (note the space) which does not exist? Try echoing the filename with quotes around it so you can see any such spaces. After a couple of nasty debugging sessions I do that as a matter of habit now.
You have to look for things like that since the code itself is basically correct - the fact that you can run it from the command line proves that. So now you're looking for a PEBKAC problem. (Problem Exists Between the Keyboard And the Chair.)
|
|---|