diff options
-rwxr-xr-x | soxdial | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -802,7 +802,10 @@ for ($argc = 0; $argc < @ARGV; $argc++) { } if(@freqs1) { push @sox_subcmds, make_sox_subcmd($time_override); - push @sox_subcmds, silence_subcmd(randomize($intertime)); + if($argc < $#ARGV) { + push @sox_subcmds, silence_subcmd(randomize($intertime)) + } + warn "argc $argc, \$\#ARGV " . $#ARGV . "\n"; } else { warn "$SELF: no valid digits in dial string.\n" if $verbose; } |