in reply to Should options in the shebang line generally behave like switches given in the commandline?

Strange, but when I tried your script, it went into an infinte loop and started creating a bunch of "Daughter Perl debugger" sessions. If you take out the BEGIN block and just do #!./perl -d on the shebang line, the debugger works as expected:
#!/usr/bin/perl -d use strict; use warnings; print "Hello\n";
  • Comment on Re: Should options in the shebang line generally behave like switches given in the commandline?
  • Select or Download Code