This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
croak on an attempt to run a directory as a script
authorRicardo Signes <rjbs@cpan.org>
Sun, 6 Jan 2013 01:30:48 +0000 (20:30 -0500)
committerRicardo Signes <rjbs@cpan.org>
Sun, 13 Jan 2013 00:39:26 +0000 (19:39 -0500)
commit1dfef69b3a0643e5cf8879e1476b0163c3e8a9b2
tree96797af59786735f74934ce4e821a60f09fa6d55
parenteeace61d181813f7b93c686e9d16cd914a90dd7d
croak on an attempt to run a directory as a script

How many times have I meant to run "perl -I lib myprog" but instead
run "perl lib myprog" only to exit 0 because that's what perl does
when you try to run a directory as a script (at least on unix)?  Many.

perl should croak when instructed to execute a directory.
[perl #61362] suggests it already does so on Win32.  Now it does it
everywhere.  Tests not yet written.
perl.c