die &USAGE unless @ARGV == 1; # yes, put it in a sub # ... my $date = $ARGV[0]; my $out_dir = "$home_dir/flowstats/configs/$date";