|Problems? Is your data what you think it is?|
Remembering values from multiple condition 'if'by Bukowski (Deacon)
|on Jul 01, 2002 at 17:36 UTC||Need Help??|
Bukowski has asked for the wisdom of the Perl Monks concerning the following question:
Hello gracious PerlMonks,
I have a short question, its perplexing me but its the end of the day and I am decaffeinated...
Let us say I have a series of filetests in an 'if' statement like this:
If one, or more, of those files exists, how can I delete them by directly referencing the results of the 'if' statement, rather than writing 4 separate 'unlink's for each of the conditions tested? I am sure there is a more elegant way to do it than the way I will do it if I carry on uneducated...
Many thanks, in advance,
Bukowski - aka Dan (email@example.com)