in reply to Re^2: Any differences between method and method()?
in thread Any differences between method and method()?

You may be interested in the "winking fat comma"...

use constant KEY => 'foobar'; use Data::Dumper; print Dumper({ KEY ,=> 'value' });

Looks like a fat comma, works like a regular comma.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^4: Any differences between method and method()?
by AnomalousMonk (Archbishop) on Aug 19, 2012 at 05:18 UTC

    And then there's also the one they call the "weeping programmer":

    >perl -wMstrict -le "use constant KEY => 'foobar'; use Data::Dumper; print Dumper({ KEY ,,,,,, 'value' }); " $VAR1 = { 'foobar' => 'value' };