A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Perl/perl5/issues/18063 below:

exception in DESTROY in global destruction is “swallowed” confusingly · Issue #18063 · Perl/perl5 · GitHub

Module: core

Description

perl -Mstrict -w -e'package Foo; sub DESTROY { die "nono" }; package main; our $wut = bless [], "Foo"'

gives:

(in cleanup) (in cleanup)  at -e line 1 during global destruction.

Expected behavior
Ideally nono should print to STDERR. At the very minimum, though, it seems confusing that (in cleanup) shows twice and makes it look like something confused perl.

Perl configuration
5.30.0, 5.26.3


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4