acmp,
Shouldn't that be
$=-1
you wrote
$="-1"
You made it a string
 Code:
Break on
$=-1
($|) ?
($^)
Get $

returns
 Code:
-1
-1