I am currently in the process of moving from EPIC and Eclipse to writing my Perl programmes with a straightforward text editor and then debugging with the native debugger. For me the two most useful features of EPIC were the ability to set a breakpoint visually by clicking in the left margin and also being able to specify the command-line arguments for a script.
So far as setting breakpoints goes I have learned it is possible to do effectively the same thing in a text editor by adding $DB::single = 1; at the position in the source where you want the debugger to halt. However I have not yet found a way of pre-specifying the command-line arguments for a script within the source code. Is this possible? I always use GetOpt::Long to unpack and access any passed arguments. Therefore one idea that strikes me is to manually set the contents of $ARGV[n] at the top of the source before any other code is run. Would this approach work?
Any suggestions or insight in this matter would be much apreciated!
In reply to Embedding command-line arguments within source code by morelenmir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |