Is it worth doing for practice and training, without modules (Perl)

viewing a connection to a secure ftp site (using perl) and downloading all .log files, saving to new directories named after the day the files were downloaded. I want to do this without modules, like a learning experience, but before I start, I would like to know if you thought this was happening, or too much for a relatively new programmer, and I just need to learn modules?

+3
source share
3 answers

If this is production work, no, use modules. Your implementation will be a bug, missing features, and unknown to the next person supporting this code.

, . . FTP, , , . scp, HTTP rsync .

RFC FTP-, . , CPAN . FTP-, - ( ). , . , - , , .

+11

, , , , , , .

, , , , "A Apple" .., , , .

. , , . , , , , , .

, , , , .

+5

ad cpan:

  • Modules are a great source of learning. Here are the zilion modules, and you can really learn a lot to learn some of them.
  • And when / when you learn your perl, you will start writing your own modules. When your program will use the modules in any case (yours), you may ask - why not use the modules already developed and debugged?

So, learn the basics of perl, learn some modules (like Net :: SFTP), and if you still want to write your own solution - it's up to you. :)

+1
source

All Articles