With a hashref, this looks a lot different and is a lot more convoluted*:Uh, no. The ref/def thing is unnecessary, since the hash deref syntax alone will tell the parser where to break:"\$.${\$row->{name}}ence"
pdl> $row->{name} = 'sent' pdl> p "\$.${\$row->{name}}ence" $.sentence pdl> p "\$.$row->{name}ence" $.sentence
In reply to Re^4: DBI and JSON fields
by etj
in thread DBI and JSON fields
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |