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-07-28 19:44:42 rss,clean Thu Jul 28 09:44:42 2016 30 20160728094442 Thu Jul 28 09:44:42 2016 http://perlmonks.org/ Anonymous Monk Crypt() usage fionbarr http://perlmonks.org/index.pl?node_id=1168738 Is the 'crypt' function identical on Windows and *nix platforms?... perlquestion Thu, 28 Jul 2016 16:04:00 +0000 http://perlmonks.org/index.pl?node_id=1168738 1168738 505086 2016-07-28 12:04:00 fionbarr Re^4: Perl Pipeline exception handling (inherit handle) tye http://perlmonks.org/index.pl?node_id=1168753 Inheritance of file handles in child processes is very similar between Unix and Windows. All of the same concepts are there in both places, but they have different names and are manipulated usin... note Thu, 28 Jul 2016 19:33:09 +0000 http://perlmonks.org/index.pl?node_id=1168753 1168753 22609 2016-07-28 15:33:09 tye Re^4: Perl Pipeline exception handling BrowserUk http://perlmonks.org/index.pl?node_id=1168749 I haven't tested this, but I believe that if you (re)<a href="?node=open">open</a> stderr to point to your logfile, and each of your subscripts simply write to stderr, then all the outpu... note Thu, 28 Jul 2016 18:54:35 +0000 http://perlmonks.org/index.pl?node_id=1168749 1168749 171588 2016-07-28 14:54:35 BrowserUk Re^3: Perl Pipeline exception handling perl_diver http://perlmonks.org/index.pl?node_id=1168748 I've a slightly different question but relevant in this context I guess: If I want to open an errorlog file in the main calling program , how can I pass the filehandle as argument to each... note Thu, 28 Jul 2016 18:51:30 +0000 http://perlmonks.org/index.pl?node_id=1168748 1168748 406362 2016-07-28 14:51:30 perl_diver Re^5: How to pass a pointer to an array of 'unsigned char' C data type with Win32::API (debug) tye http://perlmonks.org/index.pl?node_id=1168745 For the audience's information, Google found <a href="ftp://kopfweb.de/ko/kopfweb.de/AutomotiveInterface/AID/V3.05/AID.h">ftp://kopfweb.de/ko/kopfweb.de/AutomotiveInterface/AID/V3.05/AID.h</a> which lead to &#91;ftp://kopfweb.de/ko/kopfweb.de/AutomotiveInterface/Documentation/A... note Thu, 28 Jul 2016 17:21:45 +0000 http://perlmonks.org/index.pl?node_id=1168745 1168745 22609 2016-07-28 13:21:45 tye Re: Crypt() usage Athanasius http://perlmonks.org/index.pl?node_id=1168742 Hello <a href="?node=fionbarr">fionbarr</a>, Yes, but apparently you can&rsquo;t rely on the crypt function being available under Windows. From <a href="http://perldoc.perl.org/perlport.html#crypt">perlport#crypt</a>: May... note Thu, 28 Jul 2016 16:28:47 +0000 http://perlmonks.org/index.pl?node_id=1168742 1168742 968231 2016-07-28 12:28:47 Athanasius Re: hashes & threads perlfan http://perlmonks.org/index.pl?node_id=1168741 I hate recommending non-Perl solutions, but Perl really isn't good for this. For true threading in an environment that is familiar to Perl programmers, like to recommend looking at &#91;http://www.qore.or... note Thu, 28 Jul 2016 16:15:49 +0000 http://perlmonks.org/index.pl?node_id=1168741 1168741 313292 2016-07-28 12:15:49 perlfan Re^2: Crypt() usage fionbarr http://perlmonks.org/index.pl?node_id=1168740 Looks good, thank you... note Thu, 28 Jul 2016 16:10:28 +0000 http://perlmonks.org/index.pl?node_id=1168740 1168740 505086 2016-07-28 12:10:28 fionbarr Re: Crypt() usage stevieb http://perlmonks.org/index.pl?node_id=1168739 Appears to be: Windows: c:\> perl -E "say crypt 'string', 'sa'" saQ9i9dEI8LLA Ubuntu: $ perl -E 'say crypt "string", "sa"' saQ9i9dEI8LLA ... note Thu, 28 Jul 2016 16:07:32 +0000 http://perlmonks.org/index.pl?node_id=1168739 1168739 789891 2016-07-28 12:07:32 stevieb Re^4: How to pass a pointer to an array of 'unsigned char' C data type with Win32::API (error) apeks_okad http://perlmonks.org/index.pl?node_id=1168737 The error message is a windows error "Perl interpreter does not function anymore" (translated from the original German Error "Perl interpreter funktioniert nicht mehr"... note Thu, 28 Jul 2016 15:52:42 +0000 http://perlmonks.org/index.pl?node_id=1168737 1168737 1168652 2016-07-28 11:52:42 apeks_okad London PM Technical Meeting 2016-08-08 davies http://perlmonks.org/index.pl?node_id=1168736 Date: 2016-08-08 (Mon 8 Aug) Duration: 1 evening Location: Broadbean's offices, 6th Floor, South Quay Building, 189 Marsh Wall, London E14 9SH (https://www.broadbean.com/... note Thu, 28 Jul 2016 15:24:09 +0000 http://perlmonks.org/index.pl?node_id=1168736 1168736 436161 2016-07-28 11:24:09 davies Re^3: hashes & threads Eily http://perlmonks.org/index.pl?node_id=1168735 If by running the empty while loop (but still reading the files) your script runs significantly faster, threads can make a difference (because it's not just time spent waiting for the file to be re... note Thu, 28 Jul 2016 15:13:19 +0000 http://perlmonks.org/index.pl?node_id=1168735 1168735 1039428 2016-07-28 11:13:19 Eily Re^2: hashes & threads gravid http://perlmonks.org/index.pl?node_id=1168734 Hi, I did the check you said, and I see fast runtime when while {}. so threads will not help here,Unless I submit a grid job from each thread. I wonder if a job can be just a... note Thu, 28 Jul 2016 14:50:22 +0000 http://perlmonks.org/index.pl?node_id=1168734 1168734 1167785 2016-07-28 10:50:22 gravid Re^3: Trying to understand Perl :-) haukex http://perlmonks.org/index.pl?node_id=1168733 Hi <a href="?node=harangzsolt33">harangzsolt33</a>, sub ccc{65} print "\n" . ccc.ccc.ccc.ccc; # this evaluates to numbers print "\n" . 65.65.65.65.65; # this evaluates to letters # Ok. It's a little ... note Thu, 28 Jul 2016 14:27:30 +0000 http://perlmonks.org/index.pl?node_id=1168733 1168733 830549 2016-07-28 10:27:30 haukex Re^3: How to pass a pointer to an array of 'unsigned char' C data type with Win32::API (error) tye http://perlmonks.org/index.pl?node_id=1168732 I don't see any reason for Perl to crash. But you don't even provide the error message associated with the Perl crash so we don't have much to go on to diagnose the problem. ... note Thu, 28 Jul 2016 14:07:26 +0000 http://perlmonks.org/index.pl?node_id=1168732 1168732 22609 2016-07-28 10:07:26 tye Re^3: How to pass a pointer to an array of 'unsigned char' C data type with Win32::API ("U0") syphilis http://perlmonks.org/index.pl?node_id=1168731 Could this lead to problems with the array reference?I don't see any reason that should lead to any problems. There are other approaches (apart from Win32::API) that you can ta... note Thu, 28 Jul 2016 14:04:58 +0000 http://perlmonks.org/index.pl?node_id=1168731 1168731 524150 2016-07-28 10:04:58 syphilis Re: hashes & threads Eily http://perlmonks.org/index.pl?node_id=1168730 Using <a href="http://search.cpan.org/perldoc?threads">threads</a> together with <a href="http://search.cpan.org/perldoc?threads%3A%3Ashared">threads::shared</a> (to share the hash) might help, or it might make things worse. If your problem is that your script is running too slow because yo... note Thu, 28 Jul 2016 14:04:13 +0000 http://perlmonks.org/index.pl?node_id=1168730 1168730 1039428 2016-07-28 10:04:13 Eily Re: hashes & threads NetWallah http://perlmonks.org/index.pl?node_id=1168729 You could adapt the "kid" subroutine in <a href="?node=1161393">the code from this node</a> to do your bidding. (Uses <a href="http://search.cpan.org/search?mode=module&amp;query=Thread%3A%3AQueue">Thread::Queue</a>). ... note Thu, 28 Jul 2016 14:02:19 +0000 http://perlmonks.org/index.pl?node_id=1168729 1168729 159887 2016-07-28 10:02:19 NetWallah PedroCC98 PedroCC98 http://perlmonks.org/index.pl?node_id=1168751 user Thu, 28 Jul 2016 19:29:14 +0000 http://perlmonks.org/index.pl?node_id=1168751 1168751 1168751 2016-07-28 15:29:14 PedroCC98 jektare jektare http://perlmonks.org/index.pl?node_id=1168746 user Thu, 28 Jul 2016 18:36:40 +0000 http://perlmonks.org/index.pl?node_id=1168746 1168746 1168746 2016-07-28 14:36:40 jektare taohidulhassan taohidulhassan http://perlmonks.org/index.pl?node_id=1168743 user Thu, 28 Jul 2016 17:07:36 +0000 http://perlmonks.org/index.pl?node_id=1168743 1168743 1168743 2016-07-28 13:07:36 taohidulhassan