Simple question:
How do I do this on one line:
my $foo = $bar->{baz};
fizz(\$foo);
I've tried \$bar->{baz}, \${$bar->{baz}}, and numerous others. Is this even possible?
-fREW
Update: Ok, the hashref is coming from DBI and I am passing the scalar ref into template toolkit. I guess now that I look more closely the issue is something to do with how TT does all of this. Effectively I want to say:
$template->process(\$row->{body}, $data);
But TT doesn't work that way, TT takes a scalar ref and puts the data there, so I'd have to do this:
$template->process(\$row->{body}, $shopdata, \$row->{data});
Anyway, thanks for the help. I'll at least only have one reference instead of two.