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 30 http://perlmonks.org/ 961 20180817190227 Anonymous Monk PerlMonks Fri Aug 17 19:02:27 2018 2018-08-18 05:02:27 Fri Aug 17 19:02:27 2018 rss,clean [OT] Why does newline in Windows print as having width? Lotus1 http://perlmonks.org/index.pl?node_id=1220549 This is minor but I find it annoying. When I print 80 characters and then a newline on the Windows command prompt it prints a blank line after the line. The Linux command prompt doesn't do this. My... perlquestion Sat, 18 Aug 2018 01:48:20 +0000 http://perlmonks.org/index.pl?node_id=1220549 1220549 922586 2018-08-17 21:48:20 Lotus1 Re^2: [OT] Why does newline in Windows print as having width? Lotus1 http://perlmonks.org/index.pl?node_id=1220553 Hi <a href="?node=kcott">Ken</a>, I'm using 80 CPL which is the default for Windows and Linux. I'm using Raspbian Linux which is based on Debian. I realize that Linux uses just one character for newline and ... note Sat, 18 Aug 2018 04:59:55 +0000 http://perlmonks.org/index.pl?node_id=1220553 1220553 922586 2018-08-18 00:59:55 Lotus1 Re: [OT] Why does newline in Windows print as having width? Athanasius http://perlmonks.org/index.pl?node_id=1220552 Hello <a href="?node=Lotus1">Lotus1</a>, I assume that the windows for both your Linux and your Windows command prompts are exactly 80 characters wide? If so, the following one-liner: perl -we 'pri... note Sat, 18 Aug 2018 04:06:05 +0000 http://perlmonks.org/index.pl?node_id=1220552 1220552 968231 2018-08-18 00:06:05 Athanasius Re: [OT] Why does newline in Windows print as having width? kcott http://perlmonks.org/index.pl?node_id=1220551 G'day <a href="?node_id=922586">Lotus1</a>, From my *nix (macOS) command line, with my usual 120 CPL (characters per line), I see what you show in the first example (file in Windows); at 80 CPL, I s... note Sat, 18 Aug 2018 03:54:05 +0000 http://perlmonks.org/index.pl?node_id=1220551 1220551 861371 2018-08-17 23:54:05 kcott Re^2: Match multiple number tobyink http://perlmonks.org/index.pl?node_id=1220550 Interesting. I guess this works for the same reason it does with 3 in decimals. toby döt ink ... note Sat, 18 Aug 2018 02:58:01 +0000 http://perlmonks.org/index.pl?node_id=1220550 1220550 757127 2018-08-17 22:58:01 tobyink Re^2: Help publishing my DB migration project juankpro http://perlmonks.org/index.pl?node_id=1220548 Thanks for your response. One of the things I have no idea yet is how to expose the command line tool, because even though the project has a vast code that might be useful as a library. Its main goal ... note Sat, 18 Aug 2018 01:36:09 +0000 http://perlmonks.org/index.pl?node_id=1220548 1220548 1220467 2018-08-17 21:36:09 juankpro Re^4: Make CSV list from values in AoH tel2 http://perlmonks.org/index.pl?node_id=1220547 Thanks Rolf. Basically meant the key "name" is missing. &nbsp;Actually, the @AoH will be empty to there won't be any keys. I'm not sure how I can use:map{ $AoH<a href="?node=%24_">$_</a>{name} || "" }in co... note Fri, 17 Aug 2018 23:40:23 +0000 http://perlmonks.org/index.pl?node_id=1220547 1220547 716732 2018-08-17 19:40:23 tel2 Re^3: Make CSV list from values in AoH LanX http://perlmonks.org/index.pl?node_id=1220546 Your approach is not advisable. Just imagine you need to change the quote from ' to ", then you'll have to change 4 code places instead of 2. depends what "if there are no names" means... note Fri, 17 Aug 2018 23:27:12 +0000 http://perlmonks.org/index.pl?node_id=1220546 1220546 708738 2018-08-17 19:27:12 LanX Re^2: Make CSV list from values in AoH tel2 http://perlmonks.org/index.pl?node_id=1220545 Thanks very much, Rolf. All your solutions seem to work to my original spec's, thanks! Sorry to report that I forgot to mention that if there are no names, the output should be 2 single... note Fri, 17 Aug 2018 23:13:48 +0000 http://perlmonks.org/index.pl?node_id=1220545 1220545 716732 2018-08-17 19:13:48 tel2