in reply to Re^4: uninitialized string variable
in thread uninitialized string variable
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"}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: uninitialized string variable
by choroba (Cardinal) on Aug 13, 2010 at 22:04 UTC | |
by jjw92 (Novice) on Aug 13, 2010 at 22:21 UTC | |
by JavaFan (Canon) on Aug 14, 2010 at 07:40 UTC |