in reply to Re: 'switch' and 'smartmatch' features deprecated in 5.38
in thread 'switch' and 'smartmatch' features deprecated in 5.38

shouldn't each of $opts{...} and be prefixed with exists?

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^3: 'switch' and 'smartmatch' features deprecated in 5.38
by swl (Prior) on Jun 27, 2023 at 02:56 UTC

    Only the "$opts{t} and $table = $opts{t};" line as the rest rely on a true value.

      If the table is a database table or something, then you'd only ever want it to be a true value anyway. I guess there's the pathological case where you have a database table called "0", which I think is legal in SQL, even if it requires some quoting.