in reply to Erm? Bug or not? Weird behaviour in hash / list conversion
{ } creates a reference to an empty anonymous hashprint join( '|', %{{ }} = (1)x100 );
as long as the what's inside the anonymous hash forms a legal hash, which is an empty hash in your case.use strict; print join '|', %{{ 'X' => 1, 'Y' => 1 }} = (1)x100;
produces the same result...my %x; my @x = (1) x 100; print join '|', %x = @x;
|
|---|