Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

If your program requires input, for example, print "How much would you like to invest in Microsoft? \n" $invest = <STDIN>; chomp $invest; $losses = $invest; print "You will lose $losses \n"; and I run perldebug, using s to step through the lines, when I get to the second line, I will need to input something. When running the debugger, though, it just steps through this line and $invest remains undefined. How do I get the debugger to let me input the values where the program needs them? Thanks in advance, Jim

Replies are listed 'Best First'.
Re: Debugger useage
by zodiac (Beadle) on May 04, 2000 at 11:43 UTC
    I guess you are using <> to read. so giving it a file argument when debugging should work. the file then consists of a single number. your losses.