However, I would write that as$ perl -wE '$data = [{"data" => "foo"}]; say @$data[0]->{"data"}' foo
which doesn't use an unneeded arrow, and uses the more usual dereference sigil. (I guess this case isn't caught by "Scalar value @... is better written as $...).$$data[0]{"data"}
In reply to Re^5: uninitialized string variable
by JavaFan
in thread uninitialized string variable
by jjw92
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |