As the other contributors have already said, warn
can be your best friend with some caveats, when print STDERR ...
becomes a better friend - especially in my case, where I have a habit of attempting to use warn
whilst trying to debug a failing test case ... entirely forgetting that the test cases use (pun intended:-) Test::Warnings
which 'eat up' all warnings and pass/fail accordingly, thus providing, IMO, a more than reasonable demonstration of Heisenbergs' Uncertainty Principle :-D
A user level that continues to overstate my experience :-))