in reply to Re^2: Automating cmd prompt command execution
in thread Automating cmd prompt command execution

Ignore my reply !! I figured it out...i was bit confused :) now its clear..one more help, when the code is done running, I should get a message saying " Do u want to continue? Press Y to run the program again or press N to exit"

  • Comment on Re^3: Automating cmd prompt command execution

Replies are listed 'Best First'.
Re^4: Automating cmd prompt command execution
by choroba (Cardinal) on Sep 08, 2015 at 11:32 UTC
    Use print to show the message, use readline to get the answer. Wrap the whole program body in a loop to repeat it:
    my $run = 'y'; while ($run =~ /^y/i) { ... print 'Do u want to continue? '; $run = readline; }
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ