use $~[0] instead of $& for Opal compatibility