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 961 PerlMonks 2016-06-30 10:20:21 rss,clean Thu Jun 30 00:20:21 2016 30 20160630002021 Thu Jun 30 00:20:21 2016 http://perlmonks.org/ Anonymous Monk Generating ranges of numbers nandymamith http://perlmonks.org/index.pl?node_id=1166921 Can anybody help in getting the solution for me. Below are the INPUT and the OUTPUT elements that I am expecting is as shown below : INPUT @array = ("1","2","3","5","6","7",9"); ... perlquestion Thu, 30 Jun 2016 10:03:42 +0000 http://perlmonks.org/index.pl?node_id=1166921 1166921 909683 2016-06-30 06:03:42 nandymamith Are "use constant" constants really inlined? Darkwing http://perlmonks.org/index.pl?node_id=1166915 Hi, the docu of constant says that constants such as use constant DEBUG => 0; are inlined. In constant.pm, the corresponding lines of code are: ... perlquestion Thu, 30 Jun 2016 07:14:15 +0000 http://perlmonks.org/index.pl?node_id=1166915 1166915 1058902 2016-06-30 03:14:15 Darkwing Re: Generating ranges of numbers Anonymous Monk http://perlmonks.org/index.pl?node_id=1166922 Sounds like homework. Can you describe the algorithm you would use in your own words? But most importantly: Why is "1 2 3" turned into "1:3" but "5 6 7" turned into "5:6 7"? What ru... note Thu, 30 Jun 2016 10:09:10 +0000 http://perlmonks.org/index.pl?node_id=1166922 1166922 961 2016-06-30 06:09:10 Anonymous Monk Re^2: Are "use constant" constants really inlined? Darkwing http://perlmonks.org/index.pl?node_id=1166920 Thanks! "a lexically-scoped scalar which has no other references," This makes it clear. In fact, i looked into the docu, but read it too briefly so i missed this sentence!... note Thu, 30 Jun 2016 07:51:17 +0000 http://perlmonks.org/index.pl?node_id=1166920 1166920 1058902 2016-06-30 03:51:17 Darkwing Re^2: Are "use constant" constants really inlined? Darkwing http://perlmonks.org/index.pl?node_id=1166919 Thanks, and B::Deparse is an interesting module; didn't know that.... note Thu, 30 Jun 2016 07:47:55 +0000 http://perlmonks.org/index.pl?node_id=1166919 1166919 1058902 2016-06-30 03:47:55 Darkwing Re: Are "use constant" constants really inlined? haukex http://perlmonks.org/index.pl?node_id=1166918 Hi <a href="?node=Darkwing">Darkwing</a>, From <a href="http://perldoc.perl.org/perlsub.html#Constant-Functions">"Constant Functions" in perlsub</a> (emphasis mine): Functions with a prototype of () are potential candidates for... note Thu, 30 Jun 2016 07:30:01 +0000 http://perlmonks.org/index.pl?node_id=1166918 1166918 830549 2016-06-30 03:30:01 haukex Re^4: using File::Find to find recently-installed modules Datz_cozee75 http://perlmonks.org/index.pl?node_id=1166917 Haven't done github yet, but I'm learning so much by the "acting as if" I'm releasing a distribution that I won't stop. I started my main project here: &#91;https://github.com/TBlazer66/hello-world/blo... note Thu, 30 Jun 2016 07:25:38 +0000 http://perlmonks.org/index.pl?node_id=1166917 1166917 947695 2016-06-30 03:25:38 Datz_cozee75 Re: Are "use constant" constants really inlined? Athanasius http://perlmonks.org/index.pl?node_id=1166916 Hello <a href="?node=Darkwing">Darkwing</a>, Yes, <a href="http://perldoc.perl.org/B/Deparse.html">B::Deparse</a> shows that they are indeed inlined: 17:21 >perl -MO=Deparse -e "use constant { C => 42, D => 0 }; print C; print 'Debug' if D;" u... note Thu, 30 Jun 2016 07:25:30 +0000 http://perlmonks.org/index.pl?node_id=1166916 1166916 968231 2016-06-30 03:25:30 Athanasius Re^3: Remove html tags to obtain plain text Anonymous Monk http://perlmonks.org/index.pl?node_id=1166914 I am trying to use HTML::Parser as I am unable to use HTML::Strip. Then use one of the other "<a href="http://search.cpan.org/search?mode=module&amp;query=html%20strip">html strip</a>" modules ... note Thu, 30 Jun 2016 06:41:01 +0000 http://perlmonks.org/index.pl?node_id=1166914 1166914 961 2016-06-30 02:41:01 Anonymous Monk Re^2: Remove html tags to obtain plain text Mj1234 http://perlmonks.org/index.pl?node_id=1166913 note Thu, 30 Jun 2016 05:19:33 +0000 http://perlmonks.org/index.pl?node_id=1166913 1166913 1145915 2016-06-30 01:19:33 Mj1234