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-04-28 20:40:18 rss,clean Thu Apr 28 10:40:18 2016 30 20160428104018 Thu Apr 28 10:40:18 2016 http://perlmonks.org/ Anonymous Monk Suppress 'Can't chdir to' warnings for File::Find mabossert http://perlmonks.org/index.pl?node_id=1161786 I am writing some prototype code for a larger application that needs to search all directories from a particular starting point and return all directories that contain certain types of files. The ... perlquestion Thu, 28 Apr 2016 16:03:27 +0000 http://perlmonks.org/index.pl?node_id=1161786 1161786 879933 2016-04-28 12:03:27 mabossert Re: Comparing Lines within a Word List CountZero http://perlmonks.org/index.pl?node_id=1161806 It takes a little longer, but the result is a file that shows all words in your worlist which differ in one place only and they are sorted according to which characters are different.For instance f... note Thu, 28 Apr 2016 20:32:43 +0000 http://perlmonks.org/index.pl?node_id=1161806 1161806 198160 2016-04-28 16:32:43 CountZero Re^6: [OT] A prediction. BrowserUk http://perlmonks.org/index.pl?node_id=1161805 the expanding balloon analogy is not the best. Agreed. But it is still the one I've most often seen presented. "The favorite"; rather than my favorite. ... note Thu, 28 Apr 2016 20:32:07 +0000 http://perlmonks.org/index.pl?node_id=1161805 1161805 171588 2016-04-28 16:32:07 BrowserUk Re^6: [OT] A prediction. BrowserUk http://perlmonks.org/index.pl?node_id=1161804 that would be the case if quintessence were the only factor, but at smaller scales other forces dominate. Yes. But I wasn't alluding to the existence of really mi... note Thu, 28 Apr 2016 20:14:54 +0000 http://perlmonks.org/index.pl?node_id=1161804 1161804 171588 2016-04-28 16:14:54 BrowserUk Re^4: Execute a Perl script in a browser federico-perlmonks http://perlmonks.org/index.pl?node_id=1161803 You are right, I did not have a clear idea of what I wanted... The fact is that I had a .svg image as output of a little program and I found out that browsers can read svg; moreover I had just lear... note Thu, 28 Apr 2016 19:54:50 +0000 http://perlmonks.org/index.pl?node_id=1161803 1161803 1160712 2016-04-28 15:54:50 federico-perlmonks Re^4: How to convert a string like this: "\321\201\321\202\321\200\321\203\320\272\321\202\321\203\321\200\320\260" to a proper utf8? igoryonya http://perlmonks.org/index.pl?node_id=1161802 I thought, that I did 'git config --global core.quotepath false', but it didn't change anything, then, I started trying to figure out how to do it in perl. Now, since you've wrote about i... note Thu, 28 Apr 2016 19:25:32 +0000 http://perlmonks.org/index.pl?node_id=1161802 1161802 810715 2016-04-28 15:25:32 igoryonya Re^5: Fast provider feeding slow consumer BrowserUk http://perlmonks.org/index.pl?node_id=1161801 Since there is still some queries that returns empty values, Leandro, this appears to be a bug in <a href="http://search.cpan.org/perldoc?IO%3A%3ASocket%3A%3AINET%3A%3ADaemon">IO::Socket::INET::Daemon</a>, in as much as, it frequently c... note Thu, 28 Apr 2016 18:58:27 +0000 http://perlmonks.org/index.pl?node_id=1161801 1161801 171588 2016-04-28 14:58:27 BrowserUk Re^3: Suppress 'Can't chdir to' warnings for File::Find stevieb http://perlmonks.org/index.pl?node_id=1161800 In case there are warnings that aren't related to permission issues that show up, instead of disabling warnings, you could stash any warnings <a href="https://metacpan.org/pod/File%3A%3AFind">File::Find</a> throws into an array, and quickl... note Thu, 28 Apr 2016 17:42:30 +0000 http://perlmonks.org/index.pl?node_id=1161800 1161800 789891 2016-04-28 13:42:30 stevieb Re: Obtaining combinations of hash keys and values Anonymous Monk http://perlmonks.org/index.pl?node_id=1161799 Why not keep the fragments as pairs. The pairs can then combine to produce four alternatives. 1 => <a href="?node=%20%27TTAAGTAGCATCGATTTATAGCATCGACTAGTAA%27%2C%20%27TTACTAGTCGATGCTATAAATCGATGCTACTTAA%27%20"> &#39;TTAAGTAGCATCGATTTATAGCATCGACTAGTAA&#39;, &#39;TTACTAGTCGATGCTATAAATCGATGCTACTTAA&#39; </a>, 2 => ... note Thu, 28 Apr 2016 17:38:55 +0000 http://perlmonks.org/index.pl?node_id=1161799 1161799 961 2016-04-28 13:38:55 Anonymous Monk Re^2: Suppress 'Can't chdir to' warnings for File::Find mabossert http://perlmonks.org/index.pl?node_id=1161798 Thanks for the alternative suggestion. I used the no warnings approach, but thought I would try yours as well. My logic was that maybe it would speed up processing, but surprisingly, it just abou... note Thu, 28 Apr 2016 17:21:06 +0000 http://perlmonks.org/index.pl?node_id=1161798 1161798 879933 2016-04-28 13:21:06 mabossert Re^2: Suppress 'Can't chdir to' warnings for File::Find mabossert http://perlmonks.org/index.pl?node_id=1161797 Well, humble pie, here I come. I saw that and assumed it was unrelated...tried it and it works perfectly. Thanks!... note Thu, 28 Apr 2016 17:15:39 +0000 http://perlmonks.org/index.pl?node_id=1161797 1161797 879933 2016-04-28 13:15:39 mabossert Re^6: Error Message - PL_perl_destruct_level at /usr/lib64/perl5/DynaLoader.pm NorCal12 http://perlmonks.org/index.pl?node_id=1161796 All files either in /home/jeffer36/perl5 or in /home/jeffer36/perl came pre-installed with the new server or were installed by using the module install feature in cPanel on the new server.... note Thu, 28 Apr 2016 16:56:49 +0000 http://perlmonks.org/index.pl?node_id=1161796 1161796 1161722 2016-04-28 12:56:49 NorCal12 Re^5: Error Message - PL_perl_destruct_level at /usr/lib64/perl5/DynaLoader.pm pryrt http://perlmonks.org/index.pl?node_id=1161795 At least on my webserver with cPanel installation of perl modules, the documentation for installing perl modules (not sure if it's cPanel or ISP documentation) lists a 'use' statement that will set... note Thu, 28 Apr 2016 16:55:57 +0000 http://perlmonks.org/index.pl?node_id=1161795 1161795 1158292 2016-04-28 12:55:57 pryrt Re^2: Contour mapping? (Thank Dog for anonymonk.) BrowserUk http://perlmonks.org/index.pl?node_id=1161794 You have triangles. Each triangle determines a plane in three space. Find the intersection of that plane with a horizontal (constant height) plane, this will be a line. The direction ... note Thu, 28 Apr 2016 16:52:13 +0000 http://perlmonks.org/index.pl?node_id=1161794 1161794 171588 2016-04-28 12:52:13 BrowserUk Re^5: Error Message - PL_perl_destruct_level at /usr/lib64/perl5/DynaLoader.pm Corion http://perlmonks.org/index.pl?node_id=1161793 Where do the files in /home/jeffer36/perl5/ come from? What made them exist?... note Thu, 28 Apr 2016 16:51:29 +0000 http://perlmonks.org/index.pl?node_id=1161793 1161793 5348 2016-04-28 12:51:29 Corion Re^3: Error Message - PL_perl_destruct_level at /usr/lib64/perl5/DynaLoader.pm Laurent_R http://perlmonks.org/index.pl?node_id=1161792 There is no problem with posting your request here after having posted somewhere else, especially if your issue was not solved there. It is still better to provide information about the fact tha... note Thu, 28 Apr 2016 16:50:16 +0000 http://perlmonks.org/index.pl?node_id=1161792 1161792 992570 2016-04-28 12:50:16 Laurent_R Re^4: Error Message - PL_perl_destruct_level at /usr/lib64/perl5/DynaLoader.pm NorCal12 http://perlmonks.org/index.pl?node_id=1161791 On the new server, there is a perl folder and a perl5 folder. My original webpage script was pointing to the perl folder BEGIN { my $base_module_dir = (-d '/home/jeffer36/perl' ? '/... note Thu, 28 Apr 2016 16:39:25 +0000 http://perlmonks.org/index.pl?node_id=1161791 1161791 1161722 2016-04-28 12:39:25 NorCal12 Re: Obtaining combinations of hash keys and values choroba http://perlmonks.org/index.pl?node_id=1161790 If the number of fragments you want to combine isn't dynamic (i.e. it's always 2), just write the nested loops: #!/usr/bin/perl use warnings; use strict; my %fragments = ( 1 => { F => 'TTAA... note Thu, 28 Apr 2016 16:39:14 +0000 http://perlmonks.org/index.pl?node_id=1161790 1161790 832495 2016-04-28 12:39:14 choroba Re: Suppress 'Can't chdir to' warnings for File::Find stevieb http://perlmonks.org/index.pl?node_id=1161789 In your wanted() sub (near the top), it should work as you expect if you add a return if -d $File::Find::name && ! -x $File::Find::name;. That checks to see if the current i... note Thu, 28 Apr 2016 16:28:33 +0000 http://perlmonks.org/index.pl?node_id=1161789 1161789 789891 2016-04-28 12:28:33 stevieb Re: Suppress 'Can't chdir to' warnings for File::Find choroba http://perlmonks.org/index.pl?node_id=1161788 The <a href="https://metacpan.org/pod/File%3A%3AFind">documentation</a> mentions the following: no warnings 'File::Find'; Have you tried it? It works for me. ... note Thu, 28 Apr 2016 16:25:33 +0000 http://perlmonks.org/index.pl?node_id=1161788 1161788 832495 2016-04-28 12:25:33 choroba Re^3: Error Message - PL_perl_destruct_level at /usr/lib64/perl5/DynaLoader.pm Mr. Muskrat http://perlmonks.org/index.pl?node_id=1161787 This is because when I go to the Perl Module section of cPanel it states: "Using Your Perl Module(s) Your Perl script needs to know how to find the modules in your path. You can do this by addin... note Thu, 28 Apr 2016 16:16:13 +0000 http://perlmonks.org/index.pl?node_id=1161787 1161787 155876 2016-04-28 12:16:13 Mr. Muskrat Re^2: Error Message - PL_perl_destruct_level at /usr/lib64/perl5/DynaLoader.pm NorCal12 http://perlmonks.org/index.pl?node_id=1161785 Mr. Muskrat, thank you for your clear suggestions. I wish to clarify somethings that may have been misunderstood. In your summary, item #1, I am using /usr/bin/perlml as my executable. This... note Thu, 28 Apr 2016 15:55:24 +0000 http://perlmonks.org/index.pl?node_id=1161785 1161785 1161722 2016-04-28 11:55:24 NorCal12 Re^5: [OT] A prediction. Athanasius http://perlmonks.org/index.pl?node_id=1161784 Hello <a href="?node=BrowserUk">BrowserUk</a>, As <a href="?node=jdporter">jdporter</a> <a href="?node_id=1161782">says</a>, the expanding balloon analogy is not the best. The two I&rsquo;ve seen are: baking raisin bread (see the animation i... note Thu, 28 Apr 2016 15:47:12 +0000 http://perlmonks.org/index.pl?node_id=1161784 1161784 968231 2016-04-28 11:47:12 Athanasius Re: extracting information about xsubs hurricup http://perlmonks.org/index.pl?node_id=1161783 Problem solved!... note Thu, 28 Apr 2016 15:20:48 +0000 http://perlmonks.org/index.pl?node_id=1161783 1161783 1094602 2016-04-28 11:20:48 hurricup Re^5: [OT] A prediction. jdporter http://perlmonks.org/index.pl?node_id=1161782 The problem with that demonstration that is glossed over, is that the dots themselves also get bigger, so the relative distances between them stay proportionally the same. ... note Thu, 28 Apr 2016 14:59:03 +0000 http://perlmonks.org/index.pl?node_id=1161782 1161782 170442 2016-04-28 10:59:03 jdporter