60 PerlMonks - Newest Nodes New nodes appearing on PerlMonks http://perlmonks.org/index.pl?node_id=30175 http://blogs.law.harvard.edu/tech/rss PerlMonks Newest Nodes XML Generator Sat Jan 23 16:59:25 2021 Sat Jan 23 16:59:25 2021 961 30 http://perlmonks.org/ Anonymous Monk PerlMonks clean,rss 2021-01-24 03:59:25 20210123165925 guidance on naming my first module for CPAN Lotus1 http://perlmonks.org/index.pl?node_id=11127342 I'm looking for guidance on naming my first module for CPAN. So far I've been calling it LG::QuickMemo_Plus::Extract::Memo The purpose of the module is to help me extract the la... perlquestion Sat, 23 Jan 2021 22:05:46 +0000 http://perlmonks.org/index.pl?node_id=11127342 11127342 922586 2021-01-23 17:05:46 Lotus1 Re^3: guidance on naming my first module for CPAN 1nickt http://perlmonks.org/index.pl?node_id=11127354 Hi again, You'd have in your distribution: lib/ lib/Device/ lib/Device/LG/ lib/Device/LG/QuickMemoPlus.pm lib/Device/LG/QuickMemoPlus/ lib/Device/LG/QuickMemoPlus/Extract.p... note Sun, 24 Jan 2021 00:53:49 +0000 http://perlmonks.org/index.pl?node_id=11127354 11127354 1130276 2021-01-23 19:53:49 1nickt Re^2: guidance on naming my first module for CPAN Lotus1 http://perlmonks.org/index.pl?node_id=11127353 This is a big help, thank you! Your answer brings up a question however. Do I need to do anything special in my package to specify the package name without the name of the pm file? In other... note Sun, 24 Jan 2021 00:39:57 +0000 http://perlmonks.org/index.pl?node_id=11127353 11127353 922586 2021-01-23 19:39:57 Lotus1 Re: guidance on naming my first module for CPAN eyepopslikeamosquito http://perlmonks.org/index.pl?node_id=11127352 Though I quite like <a href="?node=davido">davido</a>'s later suggestion of Data::QuickMemoPlus::Extract, I bring your attention to a general piece of naming advice from <a href="?node_id=418891">Writing Solid CPAN Modules</a>, namely that Perl Best Prac... note Sun, 24 Jan 2021 00:27:47 +0000 http://perlmonks.org/index.pl?node_id=11127352 11127352 176576 2021-01-23 19:27:47 eyepopslikeamosquito Re: guidance on naming my first module for CPAN 1nickt http://perlmonks.org/index.pl?node_id=11127351 Hi, thank you for doing the right thing and asking first! You have three excellent answers, but I'd side with the learned <a href="?node=Grandfather">Grandfather</a> over the learned <a href="?node=davido">davido</a> on whether or not to ... note Sat, 23 Jan 2021 23:44:29 +0000 http://perlmonks.org/index.pl?node_id=11127351 11127351 1130276 2021-01-23 18:44:29 1nickt Re^2: guidance on naming my first module for CPAN davido http://perlmonks.org/index.pl?node_id=11127350 This "top level" discussion is a good call. Perhaps something in the Data:: namespace. Data::QuickMemoPlus::Extract, for example. Dave... note Sat, 23 Jan 2021 23:38:12 +0000 http://perlmonks.org/index.pl?node_id=11127350 11127350 281137 2021-01-23 18:38:12 davido Re: Papal infallibility davido http://perlmonks.org/index.pl?node_id=11127349 <a href="http://threevirtues.com/">http://threevirtues.com/</a>: Three Virtues According to Larry Wall(1), the original author of the Perl programming language, there are three great virtues of a ... note Sat, 23 Jan 2021 23:15:12 +0000 http://perlmonks.org/index.pl?node_id=11127349 11127349 281137 2021-01-23 18:15:12 davido Re: guidance on naming my first module for CPAN GrandFather http://perlmonks.org/index.pl?node_id=11127348 I'd look to see where it might fit into CPAN's current hierarchy. A <a href="https://metacpan.org/search?q=Extract">MetaCPAN search on Extract</a> may help. As a general thing you should avoid generating top l... note Sat, 23 Jan 2021 23:11:11 +0000 http://perlmonks.org/index.pl?node_id=11127348 11127348 461912 2021-01-23 18:11:11 GrandFather Re: guidance on naming my first module for CPAN davido http://perlmonks.org/index.pl?node_id=11127347 I would probably favor QuickMemoPlus::MemoExtract because I don't like mixing snake case and camel case if I can help it. (Doing so comes in handy sometimes, but this doesn't seem like that time.) ... note Sat, 23 Jan 2021 23:00:18 +0000 http://perlmonks.org/index.pl?node_id=11127347 11127347 281137 2021-01-23 18:00:18 davido Re: guidance on naming my first module for CPAN ikegami http://perlmonks.org/index.pl?node_id=11127346 Just two quick tips: + is not an acceptable character. And _ is avoided in module names.... note Sat, 23 Jan 2021 22:43:00 +0000 http://perlmonks.org/index.pl?node_id=11127346 11127346 381608 2021-01-23 17:43:00 ikegami Re^3: Question regarding Time::Piece and timezones atcroft http://perlmonks.org/index.pl?node_id=11127345 <a href="https://github.com/Dual-Life/Time-Piece/issues/52">Possible issue regarding strptime() and TZs #52</a> submitted.... note Sat, 23 Jan 2021 22:42:15 +0000 http://perlmonks.org/index.pl?node_id=11127345 11127345 70929 2021-01-23 17:42:15 atcroft Re: I am confused by a "Learning Perl" sample showing "unshift" rsFalse http://perlmonks.org/index.pl?node_id=11127344 This natural confusion may occur because there are two ways how to prepend one array to another. You can prepend starting from the beginning of an array or from the end. Here, in Perl, uns... note Sat, 23 Jan 2021 22:13:09 +0000 http://perlmonks.org/index.pl?node_id=11127344 11127344 1094311 2021-01-23 17:13:09 rsFalse Re^5: I am confused by a "Learning Perl" sample showing "unshift" LanX http://perlmonks.org/index.pl?node_id=11127343 Yes good point! ( provided choroba's comment, that the targets are swapped. ) Cheers Rolf (addicted to the Perl Pr... note Sat, 23 Jan 2021 22:10:10 +0000 http://perlmonks.org/index.pl?node_id=11127343 11127343 708738 2021-01-23 17:10:10 LanX