in reply to Re^2: Stupid If Question
in thread Stupid If Question

Since the variable is used in three different places you can declare it right at the top, and hence the scoping of it would be such that it is available to the entire code. When you declare a variable inside blocks (i.e. {} ) the scope of that variable determines its visibility only inside that block and within it.

use strict; my $zipexe;
thumbs-up for using "strict"...keep up the good work :)

Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.