in reply to Re^2: one-liner yields unexpected result
in thread one-liner yields unexpected result

Try to use -m instead of -m-. From the documentation (perldoc perlrun)
If the first character after the -M or -m is a dash (-) then the 'use' is replaced with 'no'.

Replies are listed 'Best First'.
Re^4: one-liner yields unexpected result
by JavaFan (Canon) on Feb 13, 2012 at 20:36 UTC
    no Module; actually loads the module, then calls unimport on it. Since the OP isn't using anything that depends on an import having run, it shouldn't matter whether no or use is used.