DEV Community

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

Collapse
 
thorstenhirsch profile image
Thorsten Hirsch • Edited

Uhm... no. I can't believe a lot of people used this pattern - why would you want a conditional declaration? You can't even call 'if($foo)' when using strict. I've always written code like '# Or this'.

Collapse
 
mitchjacksontech profile image
Mitch Jackson

I'm not convinced a lot of people use this pattern. I picked it up so long ago, I can't tell you where I learned it. I've preferred it for it's brevity.