in reply to Re: Copy folders
in thread Copy folders

… having people tell me to use modules. … a required external module seems pretty lame.
I think these words were what itched afoken (and possibly other monks, too). A great deal of Perl's power comes from its already available modules. The "extern"-ness of File::Copy and File::Path is such that it is just a use statement away - no installation needed.

Nothing against writing this anew from scratch -- as a learning experience, to explore new ways, or for special needs. But the possibility to use modules (and to create them, for your own custom logic that you need in multiple places) is one of Perl's strengths.

Replies are listed 'Best First'.
Re^3: Copy folders
by SM177Y (Initiate) on Sep 14, 2015 at 23:00 UTC
    I understand completely. I see now that my statement could have been interpreted a little harsher than I ever intended. It wasn't really a bash on solid modules at all. It was more of a personal complaint that the language didn't have built in functions as simple as deleting/copying/moving a folder recursively. I do thank you for your input. I also updated the dir_del. Found a bug in it lol. I am working on a small package of subs that will allow all file/folder copy/move/delete from all perl built-ins. Once again, mostly for fun and to see it be done. Nothing against modules as a whole. I think they're great and I have had the pleasure of using quite a few thus far. I've also had the displeasure of dealing with broken ones that don't build and having to make native workarounds like this...I sort of think it's fun. I never intended to offend anyone and yes I am new on here and "relatively" newish to perl I would say. Very strong Bash,BASIC,HTML,*nix administration/networking background so picking up on the basics of Perl was pretty easy for me but I admit I am still learning some of the do's and do not's. I appreciate honest critics as to learn properly. Even if I do throw something out there prematurely or just plain awful when viewed from a veteran :P
      "Reinventing the wheel, poorly...Misbehaving code...Ugly code..." afoken
      "Come on, afoken spent quite a bit of time to offer you a treasury of advice..." Laurent_R
      "I understand completely..." SM177Y AKA hang around

      No. You don't.

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

      A reply falls below the community's threshold of quality. You may see it by logging in.