Bug 24545: Cannot return outside of sub
We must die instead Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
83da3af9da
commit
61a2c4db6a
|
|
@ -42,7 +42,7 @@ sub wanted {
|
|||
find({ wanted => \&wanted, no_chdir => 1 }, File::Spec->curdir());
|
||||
|
||||
foreach my $name (@files) {
|
||||
open( FILE, $name ) || return 0;
|
||||
open( FILE, $name ) || die "cannot open file $name $!";
|
||||
my ( $hascopyright, $hasgpl, $hasv3, $hasorlater, $haslinktolicense,
|
||||
$hasfranklinst, $is_not_us ) = (0)x7;
|
||||
while ( my $line = <FILE> ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue