in reply to sending commands to CLI and then appending to end of array with push

If you want to collect something into an array it is not beneficial to clear that array in every loop iteration. Put my @commands_run = (); before the loop instead of inside the loop and it should work

  • Comment on Re: sending commands to CLI and then appending to end of array with push
  • Download Code

Replies are listed 'Best First'.
Re^2: sending commands to CLI and then appending to end of array with push
by sqspat (Acolyte) on Jul 13, 2009 at 15:17 UTC
    Thanks that sorted the problem perfectly !!!!