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 PerlMonks Mon Jun 26 13:21:01 2017 961 http://perlmonks.org/ rss,clean 30 2017-06-26 23:21:01 20170626132101 Anonymous Monk Mon Jun 26 13:21:01 2017 reading files in @ARGV doesn't return expected output fasoli http://perlmonks.org/index.pl?node_id=1193642 Hello again Wise Monks, I'm trying to read multiple files using @ARGV and then split them into columns and print the matrices. Then (if this ever works - I'm desperate at this point) I... perlquestion Mon, 26 Jun 2017 23:04:11 +0000 http://perlmonks.org/index.pl?node_id=1193642 1193642 1124290 2017-06-26 19:04:11 fasoli textual GUI using only part of the terminal morgon http://perlmonks.org/index.pl?node_id=1193635 Hi, I have a very basic understanding of curses to build full-screen text GUIs, but I cannot figure out if it is possible to build a text-based GUI in Perl that only uses part of the terminal scre... perlquestion Mon, 26 Jun 2017 22:27:43 +0000 http://perlmonks.org/index.pl?node_id=1193635 1193635 726291 2017-06-26 18:27:43 morgon Checking if your CPAN distributions need to bump their prereq versions stevieb http://perlmonks.org/index.pl?node_id=1193614 Update: In v0.02, we now skip over prereqs where the version is listed as 0 (zero). This signifies that any version of a prereq is acceptable. To disable this and display all prereqs even if... CUFP Mon, 26 Jun 2017 17:52:27 +0000 http://perlmonks.org/index.pl?node_id=1193614 1193614 789891 2017-06-26 13:52:27 stevieb Re^3: textual GUI using only part of the terminal Anonymous Monk http://perlmonks.org/index.pl?node_id=1193643 Are you positive that Curses can do that or are you only guessing? Other guy mean that <a href="http://en.wikipedia.org/wiki/Special:Search?search=tmux">tmux</a> is created using libevent and ncurses -- can you reinvent a &#91;wp://terminal multiplexe... note Mon, 26 Jun 2017 23:19:25 +0000 http://perlmonks.org/index.pl?node_id=1193643 1193643 961 2017-06-26 19:19:25 Anonymous Monk Re^10: Ignore a range of numbers ina List Laurent_R http://perlmonks.org/index.pl?node_id=1193641 Well, you know, at $work, I'm stuck with version 5.10 on our aging AIX servers (but we are moving soon to a RHEL Linux) and even with version 5.8 on our VMS servers. That's one of the reasons I am not... note Mon, 26 Jun 2017 22:58:20 +0000 http://perlmonks.org/index.pl?node_id=1193641 1193641 992570 2017-06-26 18:58:20 Laurent_R Re^2: textual GUI using only part of the terminal morgon http://perlmonks.org/index.pl?node_id=1193640 Are you positive that Curses can do that or are you only guessing? If you know could you show me how one would go about it? And sure, a tmux pane would achieve something similar, but that is n... note Mon, 26 Jun 2017 22:57:36 +0000 http://perlmonks.org/index.pl?node_id=1193640 1193640 726291 2017-06-26 18:57:36 morgon Re: textual GUI using only part of the terminal Anonymous Monk http://perlmonks.org/index.pl?node_id=1193639 According to the docs fzf can integrate with tmux for the terminal splitting. That's probably easier, just use <a href="http://www.freebsd.org/cgi/man.cgi?query=screen&amp;manpath=SuSE+Linux/i386+11.3">screen</a> or tmux to run your script in one pane and a regular terminal in the other... note Mon, 26 Jun 2017 22:51:20 +0000 http://perlmonks.org/index.pl?node_id=1193639 1193639 961 2017-06-26 18:51:20 Anonymous Monk Re: Delay in Writing the data to Text file AnomalousMonk http://perlmonks.org/index.pl?node_id=1193638 ... around 3 lakh ... N.B.: The unit of a <a href="http://en.wikipedia.org/wiki/Special:Search?search=Lakh">lakh</a> == 100,000. ... note Mon, 26 Jun 2017 22:33:24 +0000 http://perlmonks.org/index.pl?node_id=1193638 1193638 634253 2017-06-26 18:33:24 AnomalousMonk Re^9: Ignore a range of numbers ina List AnomalousMonk http://perlmonks.org/index.pl?node_id=1193634 ... I've just learned something. Unfortunately, you've just learned something that is obsolete. I should have made it clear that this feature, added with Pe... note Mon, 26 Jun 2017 22:18:29 +0000 http://perlmonks.org/index.pl?node_id=1193634 1193634 634253 2017-06-26 18:18:29 AnomalousMonk Re^3: Match all Non-0 and Letters sundialsvc4 http://perlmonks.org/index.pl?node_id=1193633 This is certainly a reasonable guess, haukex, and it certainly could be correct. &nbsp; I hope that the OP will elect to elaborate further to remove all doubt. Certainly, the f... note Mon, 26 Jun 2017 22:02:06 +0000 http://perlmonks.org/index.pl?node_id=1193633 1193633 647953 2017-06-26 18:02:06 sundialsvc4 Re^2: Icon for pp on Strawberry marto http://perlmonks.org/index.pl?node_id=1193632 Nice, a suggestion, cpanm is faster than cpan and you can replace your command prompt actions perl Makefile.PL dmake Makefile dmake test dmake install With: ... note Mon, 26 Jun 2017 21:55:52 +0000 http://perlmonks.org/index.pl?node_id=1193632 1193632 324763 2017-06-26 17:55:52 marto Re: Icon for pp on Strawberry aplonis http://perlmonks.org/index.pl?node_id=1193631 SOLVED: Here's what works. It's not even hard. If pp is already installed, then remove it with cpanm --uninstall pp Find the directory C:\Strawberry\cp... note Mon, 26 Jun 2017 21:48:41 +0000 http://perlmonks.org/index.pl?node_id=1193631 1193631 64219 2017-06-26 17:48:41 aplonis Re: Ignore a range of numbers in a List -- oneliner Discipulus http://perlmonks.org/index.pl?node_id=1193630 &gt; Not looking for any grep or regex solution for this task &gt; It is not that I didn't want to use Regex , But just wanted to try out the Non-Regex solution . Please not... note Mon, 26 Jun 2017 21:43:27 +0000 http://perlmonks.org/index.pl?node_id=1193630 1193630 174111 2017-06-26 17:43:27 Discipulus Re^3: Match all Non-0 and Letters marto http://perlmonks.org/index.pl?node_id=1193629 "BTW, I do not downvote" More of your often repeated <a href="?node_id=1192802">lies</a>.... note Mon, 26 Jun 2017 21:20:52 +0000 http://perlmonks.org/index.pl?node_id=1193629 1193629 324763 2017-06-26 17:20:52 marto Re^2: Generate a report for every month for a year marto http://perlmonks.org/index.pl?node_id=1193628 &#91;id://1192805|"If you are making these suggestions in earnest, please also include code or concrete applications in pseudo-code, instead of "scare quotes" around verbs to suggest that you are talki... note Mon, 26 Jun 2017 21:15:58 +0000 http://perlmonks.org/index.pl?node_id=1193628 1193628 324763 2017-06-26 17:15:58 marto Re^7: LibXML setNodeName error haukex http://perlmonks.org/index.pl?node_id=1193627 Well, in that case perhaps add next unless $el->getAttribute('name')=~/^\w+$/; into the loop I showed, or, since that might reject valid element names, reject the unwanted names with next... note Mon, 26 Jun 2017 20:59:50 +0000 http://perlmonks.org/index.pl?node_id=1193627 1193627 830549 2017-06-26 16:59:50 haukex Re^6: LibXML setNodeName error geddie2001 http://perlmonks.org/index.pl?node_id=1193626 You are correct when I'm referring to an example like: In this instance, I would like that node to be left alone, unchanged. test input: ... note Mon, 26 Jun 2017 20:49:00 +0000 http://perlmonks.org/index.pl?node_id=1193626 1193626 1193577 2017-06-26 16:49:00 geddie2001 Re^3: poll ideas quest 2017 (Veni, vidi, vici) chacham http://perlmonks.org/index.pl?node_id=1193625 You guys are so funny. But, that does kind of cover the option, so...added.... note Mon, 26 Jun 2017 20:37:22 +0000 http://perlmonks.org/index.pl?node_id=1193625 1193625 934209 2017-06-26 16:37:22 chacham Re^4: Architecture design for full stack development. chacham http://perlmonks.org/index.pl?node_id=1193624 Such approach invalidates any attempt to compare previous state and current state of a record in a table If a previous value has meaning, it should never have been deleted. Also, in ... note Mon, 26 Jun 2017 20:32:35 +0000 http://perlmonks.org/index.pl?node_id=1193624 1193624 934209 2017-06-26 16:32:35 chacham Re^5: LibXML setNodeName error haukex http://perlmonks.org/index.pl?node_id=1193623 So you have something like ? That's not going to be valid as an <a href="https://www.w3.org/TR/xml/#sec-starttags">XML element Name</a> (?), so what do you wa... note Mon, 26 Jun 2017 20:32:25 +0000 http://perlmonks.org/index.pl?node_id=1193623 1193623 830549 2017-06-26 16:32:25 haukex Re^3: Icon for pp on Strawberry soonix http://perlmonks.org/index.pl?node_id=1193622 To elaborate on my third bullet point "different versions": You could try out, either directly (using Strawberry's "portable" editions) or via <a href="https://github.com/stevieb9/berrybrew">berrybrew</a>: ... note Mon, 26 Jun 2017 20:29:54 +0000 http://perlmonks.org/index.pl?node_id=1193622 1193622 1015412 2017-06-26 16:29:54 soonix Re: Warnings using -w ikegami http://perlmonks.org/index.pl?node_id=1193621 -w activates warnings globally, which causes escapeHTML to warn when you pass undef to it. Fixed: my $msg_html = escapeHTML( $q->param( 'msg' ) // 'No msg' ... note Mon, 26 Jun 2017 20:11:16 +0000 http://perlmonks.org/index.pl?node_id=1193621 1193621 381608 2017-06-26 16:11:16 ikegami Re^4: LibXML setNodeName error geddie2001 http://perlmonks.org/index.pl?node_id=1193620 I've noticed a new issue. If the value of the name attribute contains the character "{" then I receive the error: bad name at replaceelementname.pl line 8. There may be other ch... note Mon, 26 Jun 2017 20:07:59 +0000 http://perlmonks.org/index.pl?node_id=1193620 1193620 1193577 2017-06-26 16:07:59 geddie2001 Re: Icon for pp on Strawberry aplonis http://perlmonks.org/index.pl?node_id=1193619 Another strange thwart in Strawberry's PP. I got the idea to do cpanm --uninstall pp then replace the pp.ico in the path... C:\Strawberry\cpan\buil... note Mon, 26 Jun 2017 18:59:01 +0000 http://perlmonks.org/index.pl?node_id=1193619 1193619 64219 2017-06-26 14:59:01 aplonis Re^8: Ignore a range of numbers ina List Laurent_R http://perlmonks.org/index.pl?node_id=1193618 Hi <a href="?node=AnomalousMonk">AnomalousMonk</a>, I'm actually running these tests on 5.14.4, and the syntax you've shown is exactly what I was after to shorten the loop: for my $num (@$aref) { $flag = 1 if $num =... note Mon, 26 Jun 2017 18:51:42 +0000 http://perlmonks.org/index.pl?node_id=1193618 1193618 992570 2017-06-26 14:51:42 Laurent_R Re: How can I connect my perl script to an Access 2010 (.accdb) file? Anonymous Monk http://perlmonks.org/index.pl?node_id=1193617 Have you ever thought of using an ISAM-like database instead of Access? Soooo simple to connect to. No MDAC (Microsoft Data Access Components) required. Your problem is a good example to leave... note Mon, 26 Jun 2017 18:45:27 +0000 http://perlmonks.org/index.pl?node_id=1193617 1193617 961 2017-06-26 14:45:27 Anonymous Monk Re^2: Match all Non-0 and Letters haukex http://perlmonks.org/index.pl?node_id=1193616 'corruption' - apparently just because the data is hexadecimal rather than decimal I think the OP was quite specific in the definition of the input format - "a n... note Mon, 26 Jun 2017 17:58:22 +0000 http://perlmonks.org/index.pl?node_id=1193616 1193616 830549 2017-06-26 13:58:22 haukex Re^3: from txt file to array jbodoni http://perlmonks.org/index.pl?node_id=1193615 What someone puts in their signature is entirely up to them. How (or whether) you respond to someone's signature is entirely up to you. I'm reminded of a hobbyist computer network t... note Mon, 26 Jun 2017 17:56:18 +0000 http://perlmonks.org/index.pl?node_id=1193615 1193615 335701 2017-06-26 13:56:18 jbodoni Re^4: LibXML setNodeName error geddie2001 http://perlmonks.org/index.pl?node_id=1193613 Thank you wise Perl Monks! This is terrific. I was starting to write numerous sub routines and it just looked rubbish. I appreciate all your help. Is there anything I need to do to mark this question ... note Mon, 26 Jun 2017 17:47:00 +0000 http://perlmonks.org/index.pl?node_id=1193613 1193613 1193577 2017-06-26 13:47:00 geddie2001 Re: Escaping double quotes in complete document haukex http://perlmonks.org/index.pl?node_id=1193612 I haven't yet had much experience with <a href="http://search.cpan.org/perldoc?CGI">CGI</a>.pm and UTF-8 issues, so I can't comment much on that, except that using <a href="http://perldoc.perl.org/Devel/Peek.html">Devel::Peek</a> has been a useful tool for me a few times when dealing... note Mon, 26 Jun 2017 17:46:18 +0000 http://perlmonks.org/index.pl?node_id=1193612 1193612 830549 2017-06-26 13:46:18 haukex Re^3: creating and Deleting a new cookie kennethk http://perlmonks.org/index.pl?node_id=1193611 When you look at the network transactions in the Network tab of Firefox DevTools (right-click, inspect element), you don't see any mention of your cookie in the Header or Cookies tabs? Sorry, languag... note Mon, 26 Jun 2017 17:40:20 +0000 http://perlmonks.org/index.pl?node_id=1193611 1193611 712372 2017-06-26 13:40:20 kennethk Re^5: Problem install Tk on CentOs using Perl 5.26 zentara http://perlmonks.org/index.pl?node_id=1193610 Yeah, you are right, but maybe the module's author is pressed for time, and fixing real bugs is more important than fixing some artificially devised tests. I'm sure Slaven would love a volunteer to he... note Mon, 26 Jun 2017 17:32:26 +0000 http://perlmonks.org/index.pl?node_id=1193610 1193610 131741 2017-06-26 13:32:26 zentara Re: Escaping double quotes in complete document holli http://perlmonks.org/index.pl?node_id=1193609 How do you output the html? print statements to STDOUT or some kind of templating system? Also what is the source of the input? A file or a database? Maybe you should reverse the problem and write a o... note Mon, 26 Jun 2017 17:29:46 +0000 http://perlmonks.org/index.pl?node_id=1193609 1193609 241598 2017-06-26 13:29:46 holli Re^3: Issue getting value from text file and keep decimal haukex http://perlmonks.org/index.pl?node_id=1193608 I have not learned about the "my" or strict yet. Why do you need those? I think the page <a href="?node_id=111088">Use strict and warnings</a> explains this pretty well. ... note Mon, 26 Jun 2017 17:28:45 +0000 http://perlmonks.org/index.pl?node_id=1193608 1193608 830549 2017-06-26 13:28:45 haukex martinjrandall martinjrandall http://perlmonks.org/index.pl?node_id=1193636 user Mon, 26 Jun 2017 22:30:49 +0000 http://perlmonks.org/index.pl?node_id=1193636 1193636 1193636 2017-06-26 18:30:49 martinjrandall