DEV Community

Discussion on: Perl 5.30 deprecates use of my() in a false conditional

Collapse
 
mitchjacksontech profile image
Mitch Jackson

This syntax had a bug. The variable did not get garbage collected when it fell out of scope. Perhaps the decision to fatalize it was a practical decision to fix that bug.

Collapse
 
jrw profile image
jrw

Probably it was too hard to just fix it, so fatalizing it was the next best thing? But it seems very risky/buggy to fatalize only in the cases where the conditional expression is false, since that expression is not a constant.