[ale] perl bogosity
Todor Fassl
fassl.tod at gmail.com
Tue May 24 17:21:05 EDT 2016
Are you sure about that?
$ perl -e 'print ref({ "key" => "value" }) . "\n";'
HASH
$ perl -e 'print ref([ "key" => "value" ]) . "\n";'
ARRAY
Using the Data::Dumper module, it looks like [ 'key' => 'value' ]
creates an anonymous reference to an array with 2 elements.
On 05/24/2016 03:10 PM, Chris Fowler wrote:
> [ 'key' => 'value' ] is an associative array like that.
>
--
Todd
More information about the Ale
mailing list