in reply to Re: Remembering values from multiple condition 'if'
in thread Remembering values from multiple condition 'if'

There's really no point in testing to see if an unlink might succeed before attempting it. Just do the unlink:
unlink qw/ file1 file2 file3 file4 /;
Although your way is cooler if you want clean error messages if something goes wrong.

-- Randal L. Schwartz, Perl hacker