in reply to External command problem

Try using the -p option for mkdir. This will create the whole directory tree for you.

Another issue: you should check for the presence of ARGV's before you actually do anything with them:

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

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--

Replies are listed 'Best First'.
Making directories
by Tyke (Pilgrim) on Mar 08, 2001 at 16:59 UTC
    You could think about using File::Path rather than mkdir -p which is less than fully portable.
    -- I knock my pate and fancy wit will come Knock as I please, there's no one at home a pontiff paraphrased