in reply to Re^3: Perl code for finding shortest path not working on large files (chomp)
in thread Perl code for finding shortest path not working on large files
Because as you can see the program asks for user input, so I cant redirect the output. Can you help me on how to redirect the output of such a code which asks for user input on command line.perl program.pl >> output.txt
There's some code that needs to be included around the last printf which is actually printing on console out, but exactly how to do it is what I want. Thanks !!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl code for finding shortest path not working on large files (chomp)
by QM (Parson) on Jul 28, 2014 at 12:40 UTC | |
|
Re^5: Perl code for finding shortest path not working on large files (chomp)
by Athanasius (Archbishop) on Jul 28, 2014 at 13:50 UTC |