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

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

Replies are listed 'Best First'.
Re^4: 'switch' and 'smartmatch' features deprecated in 5.38
by tobyink (Canon) on Jun 27, 2023 at 06:42 UTC

    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.