in reply to Possible to make alias for 'use' ?

Yes, but it's probably a bad idea. You can declare a sub that will "use" the module for you.

sub With { eval "use @_"; } With 'myRoboFolks'; ...
l8rZ,
--
andrew

Replies are listed 'Best First'.
Re^2: Possible to make alias for 'use' ?
by Anonymous Monk on Oct 07, 2011 at 07:17 UTC
    It seems won't work...
    sub With { eval "use @_"; } With 'strict'; $x = 10;
    It didn't die() as what I would expect... It that any hacks to deal with *CORE:: stuff ?
      strict is lexically scoped, this won't die either
      sub Foo { use strict; @_ } $x = 1;

      If you want to fiddle with strict/warnings, see Toolkit, nonsense...

        Hmm... I just wish to see if there's a way to make an alias to use() anyway... which they might act identically..