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 2016-05-04 09:21:22 rss,clean Tue May 3 23:21:22 2016 30 20160503232122 Tue May 3 23:21:22 2016 http://perlmonks.org/ Anonymous Monk To organize pipe right way. nikolay http://perlmonks.org/index.pl?node_id=1162159 Hi, the great! I got a problem w/ the pipes that is concluded in necessity to repeat data, sent into pipe in order to achieve the desired action. In my script i have two parts -... perlquestion Wed, 04 May 2016 07:50:28 +0000 http://perlmonks.org/index.pl?node_id=1162159 1162159 1139421 2016-05-04 03:50:28 nikolay converting perl to machine language Ganesh Bharadwaj1 http://perlmonks.org/index.pl?node_id=1162151 Hi Monks, I want to pass some perl scripts I have created to other colleagues. I dont want them to see what is written inside, since there are some confidential information. I want to know how I ca... perlquestion Wed, 04 May 2016 07:29:11 +0000 http://perlmonks.org/index.pl?node_id=1162151 1162151 1151301 2016-05-04 03:29:11 Ganesh Bharadwaj1 regex to capture an unsigned decimal value, but also preserving the user's formatting. darisler http://perlmonks.org/index.pl?node_id=1162141 Hello kind Monks, I am trying code a regular expression which will capture an "unsigned fixed decimal" value, preserving the original formatting. Here is what I'm trying to do: my... perlquestion Wed, 04 May 2016 04:35:34 +0000 http://perlmonks.org/index.pl?node_id=1162141 1162141 1087691 2016-05-04 00:35:34 darisler Re^4: unreaping , reversing reaped, resurrecting a node beech http://perlmonks.org/index.pl?node_id=1162167 A link offsite to any kind of paste-bin style code is guaranteed to be broken eventually and probably soon. The link was future garbage. It pointed to 25 lines of code that could have been plac... note Wed, 04 May 2016 09:14:36 +0000 http://perlmonks.org/index.pl?node_id=1162167 1162167 1136678 2016-05-04 05:14:36 beech Re^3: What am I not understanding about $, Ovid http://perlmonks.org/index.pl?node_id=1162166 Downvote away, I don't mind :) But first, read why I recommend this. I assure you I'm not trying to turn Perl into Java; I'm only trying to avoid... note Wed, 04 May 2016 08:52:12 +0000 http://perlmonks.org/index.pl?node_id=1162166 1162166 17000 2016-05-04 04:52:12 Ovid Re^3: What am I not understanding about $, Ovid http://perlmonks.org/index.pl?node_id=1162165 The issue I have isn't so much with the core Perl behavior, so much as the plethora of built-in global variables in Perl, and the general abuse of globals. For example, in one of my @INC d... note Wed, 04 May 2016 08:48:25 +0000 http://perlmonks.org/index.pl?node_id=1162165 1162165 17000 2016-05-04 04:48:25 Ovid Re^2: What am I not understanding about $, BrowserUk http://perlmonks.org/index.pl?node_id=1162164 Because nobody knows what $" is Anyone who doesn't know what $" is, almost certainly won't understand @array<a href="?node=2%2C4">2,4</a>, so you better make that: my ... note Wed, 04 May 2016 08:32:35 +0000 http://perlmonks.org/index.pl?node_id=1162164 1162164 171588 2016-05-04 04:32:35 BrowserUk Re^6: who can help me with a very interesting Perl program? Anonymous Monk http://perlmonks.org/index.pl?node_id=1162163 many thanks for Athanasius' great help!! I still want to ask question. maybe I am not good at Perl, so forgive me. According to your debug output, for the initial value for @queue and $next, I c... note Wed, 04 May 2016 07:55:25 +0000 http://perlmonks.org/index.pl?node_id=1162163 1162163 961 2016-05-04 03:55:25 Anonymous Monk Re^4: Expression inside hash beech http://perlmonks.org/index.pl?node_id=1162162 Its best in the future to post the code inside code tags here on perlmonks, like I have done with your 6TneLv at <a href="?node_id=1162154">Re: execute a string</a>... note Wed, 04 May 2016 07:55:11 +0000 http://perlmonks.org/index.pl?node_id=1162162 1162162 1136678 2016-05-04 03:55:11 beech Re^2: converting perl to machine language Ganesh Bharadwaj1 http://perlmonks.org/index.pl?node_id=1162161 thanks a lot for the detailed answer.... note Wed, 04 May 2016 07:54:35 +0000 http://perlmonks.org/index.pl?node_id=1162161 1162161 1151301 2016-05-04 03:54:35 Ganesh Bharadwaj1 Re^2: RFC: Parsing with perl - Regexes and beyond beech http://perlmonks.org/index.pl?node_id=1162160 Interesting this ideone if it really lets you run actual perl code, anyway, its best in the future if you also post the code here in code tags, here is the output on my machine #!/usr/bin/perl ... note Wed, 04 May 2016 07:51:35 +0000 http://perlmonks.org/index.pl?node_id=1162160 1162160 1136678 2016-05-04 03:51:35 beech Re^2: Regex troubles... beech http://perlmonks.org/index.pl?node_id=1162158 Interesting this ideone if it really lets you run actual perl code, anyway, its best in the future if you also post the code here in code tags, here is the output on my machine #!/usr/bin/perl ... note Wed, 04 May 2016 07:46:47 +0000 http://perlmonks.org/index.pl?node_id=1162158 1162158 1136678 2016-05-04 03:46:47 beech Re: converting perl to machine language GrandFather http://perlmonks.org/index.pl?node_id=1162157 Short version: you can't. Slightly longer version: even if you could it doesn't prevent a keen competent person reverse engineering your intellectual property. Longer version: altho... note Wed, 04 May 2016 07:46:36 +0000 http://perlmonks.org/index.pl?node_id=1162157 1162157 461912 2016-05-04 03:46:36 GrandFather Re^3: converting perl to machine language Corion http://perlmonks.org/index.pl?node_id=1162156 I already linked to <a href="http://search.cpan.org/dist/PAR-Packer">PAR::Packer</a>, as this is what I recommend.... note Wed, 04 May 2016 07:44:04 +0000 http://perlmonks.org/index.pl?node_id=1162156 1162156 5348 2016-05-04 03:44:04 Corion Re^2: converting perl to machine language Ganesh Bharadwaj1 http://perlmonks.org/index.pl?node_id=1162155 The people who are using the perl script are just laymen. So a basic encryption will do. What do you suggest?... note Wed, 04 May 2016 07:41:25 +0000 http://perlmonks.org/index.pl?node_id=1162155 1162155 1151301 2016-05-04 03:41:25 Ganesh Bharadwaj1 Re: execute a string beech http://perlmonks.org/index.pl?node_id=1162154 Since <a href="?node_id=1160993">Reaped: Re: execute a string</a> was reaped here is what it said, see <a href="http://ideone.com/6TneLv">http://ideone.com/6TneLv</a> Part of my continuing quest to write ever smaller parsers. And the code , in the form of a shell sessi... note Wed, 04 May 2016 07:39:58 +0000 http://perlmonks.org/index.pl?node_id=1162154 1162154 1136678 2016-05-04 03:39:58 beech Re: converting perl to machine language Corion http://perlmonks.org/index.pl?node_id=1162153 This is a FAQ. See <a href="http://perldoc.perl.org/perlfaq3.html">perlfaq3</a> on <a href="http://perldoc.perl.org/perlfaq3.html#How-can-I-hide-the-source-for-my-Perl-program?">How can I hide the source for my Perl program?</a>. Also see &#91;mod:/... note Wed, 04 May 2016 07:36:18 +0000 http://perlmonks.org/index.pl?node_id=1162153 1162153 5348 2016-05-04 03:36:18 Corion Re: converting perl to machine language Athanasius http://perlmonks.org/index.pl?node_id=1162152 Hello <a href="?node=Ganesh%20Bharadwaj1">Ganesh Bharadwaj1</a>, You can&rsquo;t. :-( See &ldquo;How can I hide the source for my Perl program?&rdquo; in <a href="http://perldoc.perl.org/perlfaq3.html">perlfaq3</a>. Hope that helps, ... note Wed, 04 May 2016 07:34:43 +0000 http://perlmonks.org/index.pl?node_id=1162152 1162152 968231 2016-05-04 03:34:43 Athanasius Re^4: unreaping , reversing reaped, resurrecting a node beech http://perlmonks.org/index.pl?node_id=1162150 We don't discourage useful participation. However, a blind link accompanied by a cryptic one-liner generally fails to qualify as "useful" Why discourage partic... note Wed, 04 May 2016 07:17:55 +0000 http://perlmonks.org/index.pl?node_id=1162150 1162150 1136678 2016-05-04 03:17:55 beech Re^3: unreaping , reversing reaped, resurrecting a node dsheroh http://perlmonks.org/index.pl?node_id=1162149 We don't discourage useful participation. However, a blind link accompanied by a cryptic one-liner generally fails to qualify as "useful".... note Wed, 04 May 2016 07:07:23 +0000 http://perlmonks.org/index.pl?node_id=1162149 1162149 163790 2016-05-04 03:07:23 dsheroh Re^2: What am I not understanding about $, bart http://perlmonks.org/index.pl?node_id=1162148 I so want to downvote this. Please stop trying to convert Perl into Java.... note Wed, 04 May 2016 06:52:46 +0000 http://perlmonks.org/index.pl?node_id=1162148 1162148 190859 2016-05-04 02:52:46 bart Re^2: regex to capture an unsigned decimal value, but also preserve the user's formatting. Athanasius http://perlmonks.org/index.pl?node_id=1162147 Hello <a href="?node=davido">davido</a>, Your use of the + (possessive) quantifier is ingenious, as it leads to simple, elegant code. I think you need to backslash the dot to avoid matching any character:... note Wed, 04 May 2016 06:41:41 +0000 http://perlmonks.org/index.pl?node_id=1162147 1162147 968231 2016-05-04 02:41:41 Athanasius Re^2: question on hash behavior shamat http://perlmonks.org/index.pl?node_id=1162144 Thank you all! Autovivification is what I was missing. Today I learned something.... note Wed, 04 May 2016 06:07:01 +0000 http://perlmonks.org/index.pl?node_id=1162144 1162144 959797 2016-05-04 02:07:01 shamat Re: regex to capture an unsigned decimal value, but also preserving the user's formatting. davido http://perlmonks.org/index.pl?node_id=1162143 You can make the dot possessive and the trailing digits greedy but optional: while(){ chomp; next unless length; say "$_ => <a href="?node=%22%2C%20%28m%2F%28%5Cd%2A.%3F%2B%5Cd%2A%29%2Fx%20%3F%20%22%241">&quot;, (m/(\d*.?+\d*)/x ? &quot;$1</a>" : '&#93;'); } ... note Wed, 04 May 2016 05:57:31 +0000 http://perlmonks.org/index.pl?node_id=1162143 1162143 281137 2016-05-04 01:57:31 davido Re^5: who can help me with a very interesting Perl program? Athanasius http://perlmonks.org/index.pl?node_id=1162142 The line: unshift @queue, map { <a href="?node=%24_%2C%20%24hash">$_, $hash</a> } @new_paths; does indeed put a reference to an empty hash into the queue (note: &ldquo;empty&rdquo; here is not the same a... note Wed, 04 May 2016 04:39:18 +0000 http://perlmonks.org/index.pl?node_id=1162142 1162142 968231 2016-05-04 00:39:18 Athanasius Re^4: Backup Script Pb WTem http://perlmonks.org/index.pl?node_id=1162140 Can you please enlight me with this method ? I read about the eof command in perldoc site. I may not use it correctly but what I did is to close the ssh connexion like this: $... note Wed, 04 May 2016 03:59:43 +0000 http://perlmonks.org/index.pl?node_id=1162140 1162140 1104726 2016-05-03 23:59:43 WTem bhadram bhadram http://perlmonks.org/index.pl?node_id=1162145 user Wed, 04 May 2016 06:39:38 +0000 http://perlmonks.org/index.pl?node_id=1162145 1162145 1162145 2016-05-04 02:39:38 bhadram