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-28 20:44:55 rss,clean Tue Jul 28 10:44:55 2015 30 20150728104455 Tue Jul 28 10:44:55 2015 http://perlmonks.org/ Anonymous Monk Working with Confluence and LWP TStanley http://perlmonks.org/index.pl?node_id=1136645 My company recently bought the Confluence software from Atlassian. Confluence is a web based collaboration system, allowing users to uploaddocuments and other content to their personal pages, and ... perlquestion Tue, 28 Jul 2015 17:43:26 +0000 http://perlmonks.org/index.pl?node_id=1136645 1136645 21156 2015-07-28 13:43:26 TStanley hex escape Question mfawbush http://perlmonks.org/index.pl?node_id=1136640 Hello, I've been beating on this for a while now that I'm just plumb confused now. I'm sure it's so simple and it's right in front of me. Need to send a five byte block to serial port. The snipp... perlquestion Tue, 28 Jul 2015 17:30:23 +0000 http://perlmonks.org/index.pl?node_id=1136640 1136640 1136638 2015-07-28 13:30:23 mfawbush use File::Path qw(make_path); fails with php 5.6.11 windjammer http://perlmonks.org/index.pl?node_id=1136627 I have recently upgraded my php from 5.3.8 to 5.6.11 (security issues requirment). Previous: PHP 5.3.8 (cli) (built: Sep 19 2011 13:29:27) Copyright (c) 1997-2011 The PHP Grou... perlquestion Tue, 28 Jul 2015 15:07:13 +0000 http://perlmonks.org/index.pl?node_id=1136627 1136627 1136624 2015-07-28 11:07:13 windjammer Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...') 1nickt http://perlmonks.org/index.pl?node_id=1136626 Hello monks, Before I file an issue report I seek to check my sanity here. I just got a Fail from CPAN testers for a recent update to a module that implemented Test::Exception. ... perlquestion Tue, 28 Jul 2015 15:04:30 +0000 http://perlmonks.org/index.pl?node_id=1136626 1136626 1130276 2015-07-28 11:04:30 1nickt Re: Recursion: The Towers of Hanoi problem Anonymous Monk http://perlmonks.org/index.pl?node_id=1136666 Really simple implementation. You might be interested in this visualization of Towers of Hanoi: https://thewalnut.io/visualizer/visualize/1322/342/ It is based on a non-recursive algorithm, although ... note Tue, 28 Jul 2015 20:23:59 +0000 http://perlmonks.org/index.pl?node_id=1136666 1136666 961 2015-07-28 16:23:59 Anonymous Monk Re: Working with Confluence and LWP GotToBTru http://perlmonks.org/index.pl?node_id=1136665 Have you looked at the example programs that were provided with the module? I wonder if there might be some clues there in how to format the URL. ... note Tue, 28 Jul 2015 20:07:37 +0000 http://perlmonks.org/index.pl?node_id=1136665 1136665 844862 2015-07-28 16:07:37 GotToBTru Re^5: Convert GMT timestamp to EST/EDT (Time::Local + Time::Piece) ikegami http://perlmonks.org/index.pl?node_id=1136664 Right, but the code posted anonymously converts to local time instead. That may not be correct. On second thought, he surely meant for $ENV{TZ} = "US/Eastern"; to remain used, in which... note Tue, 28 Jul 2015 20:03:56 +0000 http://perlmonks.org/index.pl?node_id=1136664 1136664 381608 2015-07-28 16:03:56 ikegami Re^4: Convert GMT timestamp to EST/EDT (Time::Local + Time::Piece) Your Mother http://perlmonks.org/index.pl?node_id=1136663 The title of the thread is "Convert GMT timestamp to EST/EDT." :P ... note Tue, 28 Jul 2015 19:26:24 +0000 http://perlmonks.org/index.pl?node_id=1136663 1136663 248054 2015-07-28 15:26:24 Your Mother Re: How to get the color values from eps files tangent http://perlmonks.org/index.pl?node_id=1136660 If you have ImageMagick installed and just need to retrieve the colour space (RGB, CMYK, etc.): use Image::Magick; my $image = Image::Magick->new; my $x = $image->Read('filename.eps'); war... note Tue, 28 Jul 2015 19:15:40 +0000 http://perlmonks.org/index.pl?node_id=1136660 1136660 905403 2015-07-28 15:15:40 tangent Re^2: Tutorial RFC: Guide to Perl references, Part 1 stevieb http://perlmonks.org/index.pl?node_id=1136659 That's awesome :) Thanks for commenting!... note Tue, 28 Jul 2015 19:15:31 +0000 http://perlmonks.org/index.pl?node_id=1136659 1136659 789891 2015-07-28 15:15:31 stevieb Re^7: Overwriting Hash / Array poj http://perlmonks.org/index.pl?node_id=1136658 For the Exports, I can see you are iterating through $act records matching the STARTDATE_SEC to the corresponding schedule time (within 30 mins) for each of the scheduled export ... note Tue, 28 Jul 2015 18:49:12 +0000 http://perlmonks.org/index.pl?node_id=1136658 1136658 221725 2015-07-28 14:49:12 poj Re^2: Working with Confluence and LWP TStanley http://perlmonks.org/index.pl?node_id=1136657 Tried the PERL_LWP_SSL_VERIFY_HOSTNAME variable already, and didn't do anything. Time to edit the source... TStanley -------- ... note Tue, 28 Jul 2015 18:47:56 +0000 http://perlmonks.org/index.pl?node_id=1136657 1136657 21156 2015-07-28 14:47:56 TStanley Re: Working with Confluence and LWP tangent http://perlmonks.org/index.pl?node_id=1136656 You could try setting the "PERL_LWP_SSL_VERIFY_HOSTNAME" environment variable - if that is set to 0 then LWP::UserAgent will honour it. If that doesn't work for you then you could get your hands dirty... note Tue, 28 Jul 2015 18:43:25 +0000 http://perlmonks.org/index.pl?node_id=1136656 1136656 905403 2015-07-28 14:43:25 tangent Re^3: Convert GMT timestamp to EST/EDT (Time::Local + Time::Piece) ikegami http://perlmonks.org/index.pl?node_id=1136655 This only works if your local time zone happens to be EST/EDT.... note Tue, 28 Jul 2015 18:39:23 +0000 http://perlmonks.org/index.pl?node_id=1136655 1136655 381608 2015-07-28 14:39:23 ikegami Re: poll ideas quest 2015 (4 humours) chacham http://perlmonks.org/index.pl?node_id=1136654 The four types of humour are: Blood, black bile, yellow bile, phlegm Jokes, riddles, knock-knocks, puns Accomodation, adaptation, complying, agreeing ... note Tue, 28 Jul 2015 18:31:54 +0000 http://perlmonks.org/index.pl?node_id=1136654 1136654 934209 2015-07-28 14:31:54 chacham Re^3: hex escape Question mfawbush http://perlmonks.org/index.pl?node_id=1136653 I was trying to capture it something like this: my $sfreq=; #014.262.00 my ($Mhz,$Khz,$hz)=split(/\./,$sfreq); my $h1=substr($Mhz,0,2); #h1=pa... note Tue, 28 Jul 2015 18:31:23 +0000 http://perlmonks.org/index.pl?node_id=1136653 1136653 1136638 2015-07-28 14:31:23 mfawbush Re: Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...') ikegami http://perlmonks.org/index.pl?node_id=1136652 The line endings of C:/strawberry5143/perl/vendor/lib/Test/Exception.pm (or t/40_fetch_memberships.t?) need to be converted from LF to CRLF. ... note Tue, 28 Jul 2015 18:30:28 +0000 http://perlmonks.org/index.pl?node_id=1136652 1136652 381608 2015-07-28 14:30:28 ikegami Re^2: Capture uncommented keywords ExReg http://perlmonks.org/index.pl?node_id=1136651 The more I think about the problem, the more it looks like I will have to do additional processing like creating a copy of the code with the commented lines removed. It will add additional cycles to t... note Tue, 28 Jul 2015 18:23:27 +0000 http://perlmonks.org/index.pl?node_id=1136651 1136651 762144 2015-07-28 14:23:27 ExReg Re^4: use File::Path qw(make_path); fails with php 5.6.11 1nickt http://perlmonks.org/index.pl?node_id=1136650 Hi <a href="?node=windjammer">windjammer</a>, the docs from <a href="http://search.cpan.org/perldoc?File%3A%3APath">File::Path</a> say: mkpath( $dir ) mkpath( $dir, $verbose, $mode ) mkpath( <a href="?node=%24dir1%2C%20%24dir2%2C...">$dir1, $dir2,...</a>, $verbose, $mode ) mkp... note Tue, 28 Jul 2015 18:17:12 +0000 http://perlmonks.org/index.pl?node_id=1136650 1136650 1130276 2015-07-28 14:17:12 1nickt Re^7: issue with code to save config on brocade swicth Corion http://perlmonks.org/index.pl?node_id=1136649 When sending your stdin_data, you never send the carriage return. Also, you only ever print/check $out for content and not $err. I would look through the option... note Tue, 28 Jul 2015 18:14:51 +0000 http://perlmonks.org/index.pl?node_id=1136649 1136649 5348 2015-07-28 14:14:51 Corion Re^2: hex escape Question Monk::Thomas http://perlmonks.org/index.pl?node_id=1136648 another variation: my @array = qw(01 42 62 00 01); print pack 'H2' x @array, @array; ... note Tue, 28 Jul 2015 18:05:12 +0000 http://perlmonks.org/index.pl?node_id=1136648 1136648 989451 2015-07-28 14:05:12 Monk::Thomas Re^6: issue with code to save config on brocade swicth janasec http://perlmonks.org/index.pl?node_id=1136647 adding the exact script below #!/usr/bin/perl use strict; use warnings; use List::Util qw( first ); use Net::OpenSSH; use Log::Log4perl qw(:easy); Log::Log4perl->easy_init($INF... note Tue, 28 Jul 2015 18:04:41 +0000 http://perlmonks.org/index.pl?node_id=1136647 1136647 1119843 2015-07-28 14:04:41 janasec Re: Working with Confluence and LWP 1nickt http://perlmonks.org/index.pl?node_id=1136646 The error message you posted makes it appear as if the connection is being attempted to the URI rather than the host. Don't know if that's a clue. ... note Tue, 28 Jul 2015 17:48:47 +0000 http://perlmonks.org/index.pl?node_id=1136646 1136646 1130276 2015-07-28 13:48:47 1nickt Re^3: Experiences with deployment solutions dragonchild http://perlmonks.org/index.pl?node_id=1136644 OS work is work that sysadmins or operations teams tend to do vs development teams. That's probably the best example. As for why Ruby over Perl? I gave a ... note Tue, 28 Jul 2015 17:39:58 +0000 http://perlmonks.org/index.pl?node_id=1136644 1136644 85580 2015-07-28 13:39:58 dragonchild Re: hex escape Question choroba http://perlmonks.org/index.pl?node_id=1136643 It's not clear what the user inputs. The following code handles the strings 01, 42, etc.: print map chr hex, qw( 01 42 62 00 01 ); Update: To use <a href="http://perldoc.perl.org/functions/pack.html">pack</a>, you can ... note Tue, 28 Jul 2015 17:39:20 +0000 http://perlmonks.org/index.pl?node_id=1136643 1136643 832495 2015-07-28 13:39:20 choroba Re^2: Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...') 1nickt http://perlmonks.org/index.pl?node_id=1136642 Hi <a href="?node=stevieb">stevieb</a>, test code is below. The dist in question is <a href="http://search.cpan.org/perldoc?CMS%3A%3ADrupal%3A%3AModules%3A%3AMembershipEntity">CMS::Drupal::Modules::MembershipEntity</a>. As I mentioned I find it very odd since t/40_fetch_memberships.t failed whereas ... note Tue, 28 Jul 2015 17:34:38 +0000 http://perlmonks.org/index.pl?node_id=1136642 1136642 1130276 2015-07-28 13:34:38 1nickt Re: if table exists (DBI) dragonchild http://perlmonks.org/index.pl?node_id=1136641 The correct answer for MySQL (at least as of 5.0). sub table_exists { my ($dbh, $table, $schema) = @_; unless ($schema) { ($schema) = $dbh->selectrow_array('SELECT DATABA... note Tue, 28 Jul 2015 17:34:11 +0000 http://perlmonks.org/index.pl?node_id=1136641 1136641 85580 2015-07-28 13:34:11 dragonchild Re^2: Time for an application portfolio Your Mother http://perlmonks.org/index.pl?node_id=1136637 They look like they're worth a try. Promo is over though (when I just clicked through). It's back to 2GB RAM. ... note Tue, 28 Jul 2015 17:15:16 +0000 http://perlmonks.org/index.pl?node_id=1136637 1136637 248054 2015-07-28 13:15:16 Your Mother Re^3: use File::Path qw(make_path); fails with php 5.6.11 windjammer http://perlmonks.org/index.pl?node_id=1136636 Problem solved, changed make_path to mkpath and all is well. Sorry to have wasted everyone's time. ... note Tue, 28 Jul 2015 17:03:04 +0000 http://perlmonks.org/index.pl?node_id=1136636 1136636 1136624 2015-07-28 13:03:04 windjammer Re: Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...') stevieb http://perlmonks.org/index.pl?node_id=1136635 Can you post the test file (or at least to just after line 14), or otherwise let us know which module you're speaking of? I need to troubleshoot some failing tests for Strawberry Perl as ... note Tue, 28 Jul 2015 16:55:19 +0000 http://perlmonks.org/index.pl?node_id=1136635 1136635 789891 2015-07-28 12:55:19 stevieb Re^2: Time for an application portfolio Anonymous Monk http://perlmonks.org/index.pl?node_id=1136634 prices are per month :)... note Tue, 28 Jul 2015 16:46:05 +0000 http://perlmonks.org/index.pl?node_id=1136634 1136634 961 2015-07-28 12:46:05 Anonymous Monk Re: Time for an application portfolio Anonymous Monk http://perlmonks.org/index.pl?node_id=1136633 Hi, I've started using wable.com (bundle #3) since a couple of weeks. I moved a web hosting I had with arvixe.com. I read around and compared before choosing Wable. I even found this promo m... note Tue, 28 Jul 2015 16:45:10 +0000 http://perlmonks.org/index.pl?node_id=1136633 1136633 961 2015-07-28 12:45:10 Anonymous Monk Re^3: use File::Path qw(make_path); fails with php 5.6.11 Your Mother http://perlmonks.org/index.pl?node_id=1136632 Or you can show exactly what you did, in what context, and how it failed; error messages, log, etc. If it's Perl related we'll try to help. "This fails" is a difficult error report to dig into. :P ... note Tue, 28 Jul 2015 16:13:10 +0000 http://perlmonks.org/index.pl?node_id=1136632 1136632 248054 2015-07-28 12:13:10 Your Mother Re^2: use File::Path qw(make_path); fails with php 5.6.11 windjammer http://perlmonks.org/index.pl?node_id=1136631 Sorry I am a newbie (really big time) We have a webpage that calls our perl program and passes the appropriate parameters. It worked when we used the old version of php and failed when I up... note Tue, 28 Jul 2015 16:09:55 +0000 http://perlmonks.org/index.pl?node_id=1136631 1136631 1136624 2015-07-28 12:09:55 windjammer Re: use File::Path qw(make_path); fails with php 5.6.11 Your Mother http://perlmonks.org/index.pl?node_id=1136630 Since no one has stepped up to be serious- :P Perl is not PHP; and this is PerlMonks, hence the monk(y) snark. PHP and Perl cannot be mixed directly. If you are trying to use a Per... note Tue, 28 Jul 2015 15:57:54 +0000 http://perlmonks.org/index.pl?node_id=1136630 1136630 248054 2015-07-28 11:57:54 Your Mother Re: use File::Path qw(make_path); fails with php 5.6.11 1nickt http://perlmonks.org/index.pl?node_id=1136629 Change use File::Path qw(make_path); to /* use File::Path qw(make_path); */ and you should be fine. ... note Tue, 28 Jul 2015 15:14:26 +0000 http://perlmonks.org/index.pl?node_id=1136629 1136629 1130276 2015-07-28 11:14:26 1nickt Re: use File::Path qw(make_path); fails with php 5.6.11 Your Mother http://perlmonks.org/index.pl?node_id=1136628 Because it's PHP. Ah, I'm just kidding. You're all right! Of all the off-topics in the world... <a href="?node=windjammer">windjammer</a> had to wander into mine. :P... note Tue, 28 Jul 2015 15:09:00 +0000 http://perlmonks.org/index.pl?node_id=1136628 1136628 248054 2015-07-28 11:09:00 Your Mother Re^4: Stop Using Perl marjetika http://perlmonks.org/index.pl?node_id=1136623 quote: And big one, warn about anyone using using ReadParse/->Vars What is the problem with readParse? I've been searching for "readParse vulnerability" all over the inter... note Tue, 28 Jul 2015 14:57:34 +0000 http://perlmonks.org/index.pl?node_id=1136623 1136623 1136618 2015-07-28 10:57:34 marjetika gukurico gukurico http://perlmonks.org/index.pl?node_id=1136661 Hiya, my name is Agustin Daniel and I am IT expert for SEO Firm BSolutions . Do head over to http://www.outsourceseoindia.in - Outsource SEO India offering Appealing Website positioning packages . Pre... user Tue, 28 Jul 2015 19:23:41 +0000 http://perlmonks.org/index.pl?node_id=1136661 1136661 1136661 2015-07-28 15:23:41 gukurico mfawbush mfawbush http://perlmonks.org/index.pl?node_id=1136638 user Tue, 28 Jul 2015 17:18:56 +0000 http://perlmonks.org/index.pl?node_id=1136638 1136638 1136638 2015-07-28 13:18:56 mfawbush windjammer windjammer http://perlmonks.org/index.pl?node_id=1136624 user Tue, 28 Jul 2015 15:00:08 +0000 http://perlmonks.org/index.pl?node_id=1136624 1136624 1136624 2015-07-28 11:00:08 windjammer