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 Sun Mar 26 08:08:58 2017 Anonymous Monk 20170326080858 http://perlmonks.org/ 2017-03-26 18:08:58 961 clean,rss PerlMonks 30 Sun Mar 26 08:08:58 2017 Joining elements of an array in a hash orangepeel1 http://perlmonks.org/index.pl?node_id=1185995 I have a hash of arrays @array1 = ("one", "two", "three", "four", "five"); @array2 = ("banana", "pear", "apple"); my %hash = (numbers => \@array1, fruit => \@array2 ); I ... perlquestion Sun, 26 Mar 2017 17:29:57 +0000 http://perlmonks.org/index.pl?node_id=1185995 1185995 1185921 2017-03-26 13:29:57 orangepeel1 Re^9: Capture::Tiny alternative melezhik http://perlmonks.org/index.pl?node_id=1185999 Hi! Thanks for explanation. Not sure If I understood all you told here. But what I already tried and here the results: sshuttle -D ... 2>&- - hangs, when gets run by P... note Sun, 26 Mar 2017 18:02:45 +0000 http://perlmonks.org/index.pl?node_id=1185999 1185999 973267 2017-03-26 14:02:45 melezhik Re: Joining elements of an array in a hash tybalt89 http://perlmonks.org/index.pl?node_id=1185998 Like this ? #!/usr/bin/perl # http://perlmonks.org/?node_id=1185995 use strict; use warnings; my @array1 = ("one", "two", "three", "four", "five"); my @array2 = ("banana... note Sun, 26 Mar 2017 17:47:26 +0000 http://perlmonks.org/index.pl?node_id=1185998 1185998 1172229 2017-03-26 13:47:26 tybalt89 Re: Joining elements of an array in a hash stevieb http://perlmonks.org/index.pl?node_id=1185997 You don't need the intermediary @group there, you can do the whole shebang in one go: use warnings; use strict; my @array1 = ("one", "two", "three", "four", "five"); my @arr... note Sun, 26 Mar 2017 17:42:18 +0000 http://perlmonks.org/index.pl?node_id=1185997 1185997 789891 2017-03-26 13:42:18 stevieb Re: Joining elements of an array in a hash 1nickt http://perlmonks.org/index.pl?node_id=1185996 use strict; use warnings; use feature 'say'; my @array1 = ("one", "two", "three", "four", "five"); my @array2 = ("banana", "pear", "apple"); my %hash = ( numbers => \@array1, ... note Sun, 26 Mar 2017 17:41:38 +0000 http://perlmonks.org/index.pl?node_id=1185996 1185996 1130276 2017-03-26 13:41:38 1nickt Re^8: Capture::Tiny alternative Anonymous Monk http://perlmonks.org/index.pl?node_id=1185994 Simply try the same invocation sshuttle -D ... 2>&- | cat (with the redirect) and see how it behaves. However, there seems to be a fundamental misconception about the workings o... note Sun, 26 Mar 2017 17:01:16 +0000 http://perlmonks.org/index.pl?node_id=1185994 1185994 961 2017-03-26 13:01:16 Anonymous Monk Re^7: Capture::Tiny alternative melezhik http://perlmonks.org/index.pl?node_id=1185993 Why do you make emphasis here on what language the programm is written ? As I told it is just an external program a Perl script interact with by IPC. As for me it is still to be proven that sshuttle... note Sun, 26 Mar 2017 16:39:27 +0000 http://perlmonks.org/index.pl?node_id=1185993 1185993 973267 2017-03-26 12:39:27 melezhik Re^6: Capture::Tiny alternative Anonymous Monk http://perlmonks.org/index.pl?node_id=1185992 As evidenced by the sshuttle ... | cat test, the problem is indeed unrelated to perl. The sshuttle is a python program. Why have you chosen to raise the github issue with Ca... note Sun, 26 Mar 2017 16:25:41 +0000 http://perlmonks.org/index.pl?node_id=1185992 1185992 961 2017-03-26 12:25:41 Anonymous Monk Re^3: Need regexp to pick off second parenthetical item AnomalousMonk http://perlmonks.org/index.pl?node_id=1185991 Regex operator \K is only available from Perl version 5.10 onward. ... note Sun, 26 Mar 2017 16:24:27 +0000 http://perlmonks.org/index.pl?node_id=1185991 1185991 634253 2017-03-26 12:24:27 AnomalousMonk Re^2: Accessing passwords in a script FreeBeerReekingMonk http://perlmonks.org/index.pl?node_id=1185990 addendum: $am_I_running_in_terminal = -t STDOUT; <a href="http://www.perl.com/doc/FMTEYEWTK/IPC/fifo.html">more info about fifo's</a>... note Sun, 26 Mar 2017 15:48:53 +0000 http://perlmonks.org/index.pl?node_id=1185990 1185990 1117559 2017-03-26 11:48:53 FreeBeerReekingMonk Re^5: Capture::Tiny alternative melezhik http://perlmonks.org/index.pl?node_id=1185989 And ... Imho the issue is quite accurate described in github , you may find all the details here ...... note Sun, 26 Mar 2017 15:38:41 +0000 http://perlmonks.org/index.pl?node_id=1185989 1185989 973267 2017-03-26 11:38:41 melezhik Re^5: Capture::Tiny alternative melezhik http://perlmonks.org/index.pl?node_id=1185988 Hi, sure ! If it is the issue on sshuttle side, then well, nothing to do here. I am just not 100 % sure. this is why I raised an github issue as well as asking some help here in this thread. ... note Sun, 26 Mar 2017 15:35:36 +0000 http://perlmonks.org/index.pl?node_id=1185988 1185988 973267 2017-03-26 11:35:36 melezhik Re: Accessing passwords in a script FreeBeerReekingMonk http://perlmonks.org/index.pl?node_id=1185987 roll with it. however, I see another danger: At some point, admins will get lazy and not want to log in and restart the thing again and again, so they hardcode the password somewhere. ... note Sun, 26 Mar 2017 15:33:47 +0000 http://perlmonks.org/index.pl?node_id=1185987 1185987 1117559 2017-03-26 11:33:47 FreeBeerReekingMonk Re^2: Need regexp to pick off second parenthetical item cormanaz http://perlmonks.org/index.pl?node_id=1185986 Awesome. I didn't know about \K.... note Sun, 26 Mar 2017 15:10:57 +0000 http://perlmonks.org/index.pl?node_id=1185986 1185986 318662 2017-03-26 11:10:57 cormanaz Re^2: RFC and Questions regarding a module to automate and centralize infrastructure administration cbeckley http://perlmonks.org/index.pl?node_id=1185985 Thank you very much for the suggestion. I've looked through Net::OpenSSH::Parallel now, and it does seem to do a lot of what I'm looking for. I've always been rather averse to leaving execution... note Sun, 26 Mar 2017 14:31:30 +0000 http://perlmonks.org/index.pl?node_id=1185985 1185985 1183826 2017-03-26 10:31:30 cbeckley Re: Accessing passwords in a script cbeckley http://perlmonks.org/index.pl?node_id=1185984 The most important consideration may be, what do the auditors accept? Auditors do not like text files. Period. Auditors are mostly ok with public/private key pairs. ... note Sun, 26 Mar 2017 14:17:16 +0000 http://perlmonks.org/index.pl?node_id=1185984 1185984 1183826 2017-03-26 10:17:16 cbeckley Re^4: Capture::Tiny alternative Anonymous Monk http://perlmonks.org/index.pl?node_id=1185983 Interesting how? You have already called out the problem in that thread. ... there is no any special about besides it probably demonizes improperly. However this could be... note Sun, 26 Mar 2017 13:51:09 +0000 http://perlmonks.org/index.pl?node_id=1185983 1185983 961 2017-03-26 09:51:09 Anonymous Monk Re^2: Need regexp to pick off second parenthetical item BillKSmith http://perlmonks.org/index.pl?node_id=1185982 If nested parentheses are an issue, use <a href="http://search.cpan.org/perldoc?Regexp%3A%3ACommon%3A%3Abalanced">Regexp::Common::balanced</a>. Bill ... note Sun, 26 Mar 2017 13:19:14 +0000 http://perlmonks.org/index.pl?node_id=1185982 1185982 957973 2017-03-26 09:19:14 BillKSmith Re^8: help figuring out what a section of script does michaelsingleton http://perlmonks.org/index.pl?node_id=1185981 The script runs against TempMapTiles, which I assume is the output of the previous scripts right? ... note Sun, 26 Mar 2017 12:42:52 +0000 http://perlmonks.org/index.pl?node_id=1185981 1185981 1185173 2017-03-26 08:42:52 michaelsingleton