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 2015-07-02 22:57:03 rss,clean Thu Jul 2 12:57:03 2015 30 20150702125703 Thu Jul 2 12:57:03 2015 http://perlmonks.org/ Anonymous Monk Max of 23 and 27 is 23? luxgladius http://perlmonks.org/index.pl?node_id=1133001 Here's the output of an actual debug session. Can anybody explain this? DB p $#l 27 DB p $#F 23 DB p max($#l, $#F) 23 DB p max(27,23) 27 DB p 0... perlquestion Thu, 02 Jul 2015 17:35:28 +0000 http://perlmonks.org/index.pl?node_id=1133001 1133001 959673 2015-07-02 13:35:28 luxgladius Re^6: RFC: Net::SNTP::Client v1 thanos1983 http://perlmonks.org/index.pl?node_id=1133023 Hello Monk::Thomas, Finally I understood your comments, I was not able to understand that you first need to check if the port number is... note Thu, 02 Jul 2015 22:29:41 +0000 http://perlmonks.org/index.pl?node_id=1133023 1133023 1069339 2015-07-02 18:29:41 thanos1983 Re^2: How sad. Anonymous Monk http://perlmonks.org/index.pl?node_id=1133022 (Pssst! Next time you replace your tinfoil hat, try a size larger. Your current one seems to be restricting the bloodflow to your brain.)... note Thu, 02 Jul 2015 22:04:05 +0000 http://perlmonks.org/index.pl?node_id=1133022 1133022 961 2015-07-02 18:04:05 Anonymous Monk Re^2: How sad. Anonymous Monk http://perlmonks.org/index.pl?node_id=1133021 (Pst! Next time you replace your tinfoil hat, try a size larger. Your current one seems to be restricting the bloodflow to your brain.)... note Thu, 02 Jul 2015 22:02:44 +0000 http://perlmonks.org/index.pl?node_id=1133021 1133021 961 2015-07-02 18:02:44 Anonymous Monk Re^2: [OT] Merging messages between users on different machines Anonymous Monk http://perlmonks.org/index.pl?node_id=1133020 First of all, thank you very much. It took quite some time to digest <a href="?node_id=1131350">your</a> <a href="?node_id=1131613">advice</a> :) A "message - ACK - ACK-to-ACK" model represents a dialog very well. Combi... note Thu, 02 Jul 2015 21:38:07 +0000 http://perlmonks.org/index.pl?node_id=1133020 1133020 961 2015-07-02 17:38:07 Anonymous Monk Re^2: Max of 23 and 27 is 23? (XS--) tye http://perlmonks.org/index.pl?node_id=1133019 The behaviour you observe is a missing SvGETMAGIC­(sv) to handle such scalars. Which is pretty much to be expected with the vast majority of XS code. Which is ... note Thu, 02 Jul 2015 21:18:24 +0000 http://perlmonks.org/index.pl?node_id=1133019 1133019 22609 2015-07-02 17:18:24 tye Re^2: Win32::API in perl v5.20.2 marinersk http://perlmonks.org/index.pl?node_id=1133018 OMG I just read the front page on your <a href="http://www.strawberryperl.com/">Strawberry Perl</a> link and my (software development) mouth is watering. If it lives up to its front page hype, I can se... note Thu, 02 Jul 2015 21:01:22 +0000 http://perlmonks.org/index.pl?node_id=1133018 1133018 210889 2015-07-02 17:01:22 marinersk Re^6: Installing File::LibMagic with Strawberry Perl jbodoni http://perlmonks.org/index.pl?node_id=1133017 Thank you! If you haven't already done so, please don't trouble yourself on my account. This project was taken over by our Ruby development team. ... note Thu, 02 Jul 2015 20:25:29 +0000 http://perlmonks.org/index.pl?node_id=1133017 1133017 335701 2015-07-02 16:25:29 jbodoni Re: Win32::API in perl v5.20.2 Laurent_R http://perlmonks.org/index.pl?node_id=1133016 I'm going to point you in the same direction as marto. I moved away from ActiveState several years ago due to module install issues and have been using Strawberry perl which IMO is much be... note Thu, 02 Jul 2015 20:20:15 +0000 http://perlmonks.org/index.pl?node_id=1133016 1133016 992570 2015-07-02 16:20:15 Laurent_R Re^2: And here's why I think "downvotes" should be eliminated, or tabulated separately ... LanX http://perlmonks.org/index.pl?node_id=1133015 Thank you so very much for bringing some more light into this phenomenon. I was already starting to regret digging up this thread from behind my ignore shield, but your entertaining post was ... note Thu, 02 Jul 2015 20:04:28 +0000 http://perlmonks.org/index.pl?node_id=1133015 1133015 708738 2015-07-02 16:04:28 LanX Re: Net::Snmp->session->get_table() data missing 1nickt http://perlmonks.org/index.pl?node_id=1133014 Hi Sherman, welcome to the monastery. If you format your post according to <a href="?node_id=174051">the guidelines</a>, including putting any code between ... tags, there'll ... note Thu, 02 Jul 2015 20:02:15 +0000 http://perlmonks.org/index.pl?node_id=1133014 1133014 1130276 2015-07-02 16:02:15 1nickt Re: And here's why I think "downvotes" should be eliminated, or tabulated separately ... LanX http://perlmonks.org/index.pl?node_id=1133013 &gt; he will promptly accumulate about 7 downvotes for the mere fact that he opened his mouth.” OMG, the system works! Cheers R... note Thu, 02 Jul 2015 20:00:19 +0000 http://perlmonks.org/index.pl?node_id=1133013 1133013 708738 2015-07-02 16:00:19 LanX Re: Max of 23 and 27 is 23? ikegami http://perlmonks.org/index.pl?node_id=1133012 #$a returns a magical value in lvalue contexts. (It used to always returns a magical value, but this was optimized.) $ perl -MDevel::Peek -e'@a=qw( a b c ); sub { Dump($_&#91;0&#93;) }->($#a... note Thu, 02 Jul 2015 19:57:09 +0000 http://perlmonks.org/index.pl?node_id=1133012 1133012 381608 2015-07-02 15:57:09 ikegami Re: Max of 23 and 27 is 23? Laurent_R http://perlmonks.org/index.pl?node_id=1133011 Hi, I tried to reproduce exactly your scenario, but I do not get any weird result: DB @L = 0..27; # use @L rather than @l for more clarity (avoid mistaking 1 and l) DB p $#L... note Thu, 02 Jul 2015 19:56:48 +0000 http://perlmonks.org/index.pl?node_id=1133011 1133011 992570 2015-07-02 15:56:48 Laurent_R Re^3: Win32::API in perl v5.20.2 Anonymous Monk http://perlmonks.org/index.pl?node_id=1133010 So where is the error message coming from? For what url? Increase verbosity in ppm and find out Also try force like suggested... note Thu, 02 Jul 2015 19:03:30 +0000 http://perlmonks.org/index.pl?node_id=1133010 1133010 961 2015-07-02 15:03:30 Anonymous Monk Re^2: Win32::API in perl v5.20.2 BillKSmith http://perlmonks.org/index.pl?node_id=1133009 What else do I need to know? C:\Users\Bill\Perl>ppm install http://www.sisyphusion.tk/ppm/Tk.ppd --force ppm install failed: 403 Forbidden C:\Users\Bill\Perl> ... note Thu, 02 Jul 2015 18:19:38 +0000 http://perlmonks.org/index.pl?node_id=1133009 1133009 957973 2015-07-02 14:19:38 BillKSmith Re^3: Max of 23 and 27 is 23? Anonymous Monk http://perlmonks.org/index.pl?node_id=1133008 So ... how (code please) was the "list being shortened in a map when &#91;you&#93; continued it to keep growing"?... note Thu, 02 Jul 2015 18:10:58 +0000 http://perlmonks.org/index.pl?node_id=1133008 1133008 961 2015-07-02 14:10:58 Anonymous Monk Re: Max of 23 and 27 is 23? Anonymous Monk http://perlmonks.org/index.pl?node_id=1133007 Nothing odd here (perl 5.16.2 x86_64-linux, List::Util 1.35) ... DB use List::Util 'max' DB p max( 1 , 4 ) 4 DB @p = ( 1 .. 5 ) DB @q = ( 1 .. 11 ) DB p ... note Thu, 02 Jul 2015 18:07:29 +0000 http://perlmonks.org/index.pl?node_id=1133007 1133007 961 2015-07-02 14:07:29 Anonymous Monk Re^2: Max of 23 and 27 is 23? luxgladius http://perlmonks.org/index.pl?node_id=1133006 Yes, it's List::Util max, and no, it was causing a bug where my list was being shortened in a map when I continued it to keep growing.... note Thu, 02 Jul 2015 18:02:01 +0000 http://perlmonks.org/index.pl?node_id=1133006 1133006 959673 2015-07-02 14:02:01 luxgladius Re^2: Max of 23 and 27 is 23? luxgladius http://perlmonks.org/index.pl?node_id=1133005 Sorry, it's List::Util 'max'.... note Thu, 02 Jul 2015 18:00:14 +0000 http://perlmonks.org/index.pl?node_id=1133005 1133005 959673 2015-07-02 14:00:14 luxgladius Re: Max of 23 and 27 is 23? toolic http://perlmonks.org/index.pl?node_id=1133004 Does it work outside the debugger? <a href="http://perldoc.perl.org/List/Util.html">List::Util</a> max? use warnings; use strict; use List::Util qw(max); print max(27,23), "\n"; __END__ 27 See also: the &#91;Basic deb... note Thu, 02 Jul 2015 17:55:44 +0000 http://perlmonks.org/index.pl?node_id=1133004 1133004 622051 2015-07-02 13:55:44 toolic Re: Max of 23 and 27 is 23? roboticus http://perlmonks.org/index.pl?node_id=1133003 <a href="?node=luxgladius">luxgladius</a>: It depends on how max is defined. FYI: min and max aren't built-in perl functions, so I'd start out with finding where it's coming from, and review the docs/source.... note Thu, 02 Jul 2015 17:39:56 +0000 http://perlmonks.org/index.pl?node_id=1133003 1133003 533863 2015-07-02 13:39:56 roboticus Re: Max of 23 and 27 is 23? BrowserUk http://perlmonks.org/index.pl?node_id=1133002 Where is max() from? With the rise and rise of 'Social' network sites: 'Computers... note Thu, 02 Jul 2015 17:38:32 +0000 http://perlmonks.org/index.pl?node_id=1133002 1133002 171588 2015-07-02 13:38:32 BrowserUk Re^5: Hang on STDOUT BrowserUk http://perlmonks.org/index.pl?node_id=1133000 If I could describe it any better, it wouldn't be a problem. I appreciate that it can be hard to track these sort of things down. One thing I would try is ... note Thu, 02 Jul 2015 17:25:05 +0000 http://perlmonks.org/index.pl?node_id=1133000 1133000 171588 2015-07-02 13:25:05 BrowserUk Re^2: Print log at runtime instead of dumping all at once later Technext http://perlmonks.org/index.pl?node_id=1132999 This is what i was looking for. Thanks a lot @salva! :)... note Thu, 02 Jul 2015 17:16:51 +0000 http://perlmonks.org/index.pl?node_id=1132999 1132999 971797 2015-07-02 13:16:51 Technext Re^5: Print log at runtime instead of dumping all at once later.. Net::SSH output buffer Technext http://perlmonks.org/index.pl?node_id=1132998 Thanks for sharing the details @salva! Thanks for the pointers @Discipulus!... note Thu, 02 Jul 2015 17:14:44 +0000 http://perlmonks.org/index.pl?node_id=1132998 1132998 971797 2015-07-02 13:14:44 Technext Re^4: Print log at runtime instead of dumping all at once later Technext http://perlmonks.org/index.pl?node_id=1132997 @Laurent_R: salva's comment worked for me so i'll go for that. :) Just to let you know, Jenkins is a tool which facilitates continuous integration. It is worth looking if you want to automate the whol... note Thu, 02 Jul 2015 17:08:15 +0000 http://perlmonks.org/index.pl?node_id=1132997 1132997 971797 2015-07-02 13:08:15 Technext Re^2: Print log at runtime instead of dumping all at once later Technext http://perlmonks.org/index.pl?node_id=1132996 Yes RichardK, i know that i'm collecting the output in a string and thus, it'll print only after completion. :) I was looking for a way where i could instead print logs at runtime. Thanks for the sugg... note Thu, 02 Jul 2015 17:03:02 +0000 http://perlmonks.org/index.pl?node_id=1132996 1132996 971797 2015-07-02 13:03:02 Technext Re^14: And here's why I think "downvotes" should be eliminated, or tabulated separately ... chacham http://perlmonks.org/index.pl?node_id=1132995 "weekly rep (for a reported abuser)" means the reputation for his posts. Sorry for the confusion.... note Thu, 02 Jul 2015 16:57:22 +0000 http://perlmonks.org/index.pl?node_id=1132995 1132995 934209 2015-07-02 12:57:22 chacham