Hi All, I just tweak some of the regular modules under my lib and those who denied made it as pre-reqs
I am still fighting for my exact solution On Thu, Feb 3, 2011 at 9:23 PM, Octavian Rasnita <orasn...@gmail.com> wrote: > If you got a solution, it could be helpful for those who will find this > thread on the web if you would explain what you did. > > Octavian > -- > From: "a b" <testa...@gmail.com> > > Thanks a lot all for your views!! i got my solution > > > > Regards, > > a b > > > > On Mon, Jan 31, 2011 at 10:48 PM, Rob Dixon <rob.di...@gmx.com> wrote: > > > >> On 31/01/2011 09:27, a b wrote: > >> > >>> > >>> Making it more clear. > >>> > >>> I want to make tar ball which contains my perl scripts and no other > >>> dependencies required. like Net::Rsh,Net::Telnet etc > >>> once user untar it, he should be able to run it from anywhere without > any > >>> extra perl modules. I am thinking that might be Net::Rsh etc is not > >>> available on target m/c > >>> > >>> With above requirement, i want Net::Rsh like modules to be in my lib. > Not > >>> sure if i need to modify Rsh module to get rid of scoping Net:: > >>> > >>> I want to simply use this module as "use Rsh;" > >>> > >>> Can some body let me know if i can make these modules to my lib :0 > >>> > >>> help much appeciated!!! > >>> > >> > >> Do you have a special reason for wanting to rename Net::Rsh to Rsh? It > is a > >> dangerous thing to do, as there may well be code that relies on the name > of > >> the module being unchanged. In particular you will have to edit the > Rsh.pm > >> file to say 'package Rsh', and it thereby becomes non-standard and so a > >> maintenance problem. > >> > >> It is worth noting that, by default, the last entry in @INC is '.' - the > >> current directory - so perl will ultimately look in the same directory > as > >> the calling program for all modules if they are not found elsewhere. So > you > >> can simple bundle Net::Rsh in the same place as your main program and > any > >> other modules. > >> > >> HTH, > >> > >> Rob > >> > > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >