in reply to Returning Hash from subroutine of form 'var' => 1,

To return a hash:

return ('nick_name' => 1);

To return a hashref:

return {'nick_name' => 1};

Replies are listed 'Best First'.
Re^2: Returning Hash from subroutine of form 'var' => 1,
by NodXof (Novice) on Jun 15, 2015 at 20:27 UTC
    # Check for duplicates $duplications = &LookForDups($nickname, $p); if ($duplications){ return {'nick_name' => 1,} }
    This did the trick!