You omitted the '$' sigil on file_name.
(use strict would've given you the hint 'Bareword "file_name" not allowed while "strict subs" in use'... )
In reply to Re: Deleting or unlinking a file
by Eliya
in thread Deleting or unlinking a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |