in reply to delete a file

it works fine here. Check your permissions and/or working directory?
#!/usr/bin/perl use Cwd; print getcwd();
---
my name's not Keith, and I'm not reasonable.