in reply to Re^2: Code behaves differently in script and on command line
in thread Code behaves differently in script and on command line

It was executing method rmap of the object it expected print to return. method object @args is called the indirect method call notation.