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 2014-08-01 11:13:09 rss,clean Fri Aug 1 01:13:09 2014 30 20140801011309 Fri Aug 1 01:13:09 2014 http://perlmonks.org/ Anonymous Monk Give hyperlink to text perl Shivangi17 http://perlmonks.org/index.pl?node_id=1095880 Hi all, This is my first post to perlmonks and i am new to perl I have a text document and i want to add hyperlinks to text. please suggest me how to give hyperlinks in ... perlquestion Fri, 01 Aug 2014 10:43:47 +0000 http://perlmonks.org/index.pl?node_id=1095880 1095880 1095877 2014-08-01 06:43:47 Shivangi17 Archive::Zip error when reading a zip file format error: bad signature mhd.tahawi http://perlmonks.org/index.pl?node_id=1095872 I have a zip file created by the zip command in Ubuntu and updated by the Archive Manager included in Ubuntu. I was trying to read the members of that archive using PERL as follows: ... perlquestion Fri, 01 Aug 2014 09:55:01 +0000 http://perlmonks.org/index.pl?node_id=1095872 1095872 1095737 2014-08-01 05:55:01 mhd.tahawi use of $* millan123 http://perlmonks.org/index.pl?node_id=1095858 I am seeing old perl code 5.001 where i can see code as below. $old = $*; $* =1; Came to know $* is deprecated. But not able find what does it mean.please let me know what does it ... perlquestion Fri, 01 Aug 2014 08:36:10 +0000 http://perlmonks.org/index.pl?node_id=1095858 1095858 1095855 2014-08-01 04:36:10 millan123 Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works Technext http://perlmonks.org/index.pl?node_id=1095850 I have written a Perl script which copies deliverable on machine A (and also takes a backup of the same on another machine B) and then invokes a shell script which is already present on machine A. Thi... perlquestion Fri, 01 Aug 2014 06:55:18 +0000 http://perlmonks.org/index.pl?node_id=1095850 1095850 971797 2014-08-01 02:55:18 Technext $ARGV[0] meaning grewal7634 http://perlmonks.org/index.pl?node_id=1095849 I have a perl script containing line $input= $ARGV&#91;0&#93;;What does $ARGV&#91;0&#93; stands for in this line? ... perlquestion Fri, 01 Aug 2014 06:43:54 +0000 http://perlmonks.org/index.pl?node_id=1095849 1095849 1083717 2014-08-01 02:43:54 grewal7634 Who would be the most fun to work for? Arunbear http://perlmonks.org/index.pl?node_id=1095870 poll Fri, 01 Aug 2014 09:41:19 +0000 http://perlmonks.org/index.pl?node_id=1095870 1095870 298378 2014-08-01 05:41:19 Arunbear Re: Give hyperlink to text perl marto http://perlmonks.org/index.pl?node_id=1095883 "i have columns in csv format and i want to give hyperlink to XYZ. means when i click on XYZ it should go to www.google.com" <a href="http://en.wikipedia.org/wiki/Special:Search?search=Comma-separated_values">CSV</a> and &#91;wp://Plain_text|te... note Fri, 01 Aug 2014 11:09:04 +0000 http://perlmonks.org/index.pl?node_id=1095883 1095883 324763 2014-08-01 07:09:04 marto Re: Give hyperlink to text perl Anonymous Monk http://perlmonks.org/index.pl?node_id=1095882 Hello <a href="?node=Shivangi17">Shivangi17</a>, welcome. Please have a look at <a href="?node=the%20Perl%20Monks%20guide%20to%20the%20Monastery">the Perl Monks guide to the Monastery</a> and <a href="?node_id=174051">How do I post a question effectively?</a> If you're very new to Perl, you should probably start with <a href="http://perldoc.perl.org/perlintro.html">perlintro</a>.... note Fri, 01 Aug 2014 11:01:16 +0000 http://perlmonks.org/index.pl?node_id=1095882 1095882 961 2014-08-01 07:01:16 Anonymous Monk Re: Who would be the most fun to work for? AppleFritter http://perlmonks.org/index.pl?node_id=1095881 Well, my answer is... &#9834; Scorpio! He'll sting you with his dreams of power and wealth, beware of... Scorpio! His twisted twin obsessions are his plot to rule the worl... note Fri, 01 Aug 2014 10:55:49 +0000 http://perlmonks.org/index.pl?node_id=1095881 1095881 1084031 2014-08-01 06:55:49 AppleFritter Re^2: Indent, anonymous sub, or lexical sub for module private code? AppleFritter http://perlmonks.org/index.pl?node_id=1095879 Granted, it does not look quite right if you consider that the main point of a sub is to avoid code duplication (the DRY principle), but it is still better IMHO than having hundred... note Fri, 01 Aug 2014 10:36:17 +0000 http://perlmonks.org/index.pl?node_id=1095879 1095879 1084031 2014-08-01 06:36:17 AppleFritter Re^2: Who would be the most fun to work for? LanX http://perlmonks.org/index.pl?node_id=1095876 Just wanted to say the same, how likely its that? :) <a href="http://en.wikipedia.org/wiki/Special:Search?search=Xena">Xena</a>++ Cheers Rolf (addicted to the Perl Programming Language and ... note Fri, 01 Aug 2014 10:27:30 +0000 http://perlmonks.org/index.pl?node_id=1095876 1095876 708738 2014-08-01 06:27:30 LanX Re^3: Threading and join/termination question SimonPratt http://perlmonks.org/index.pl?node_id=1095875 I really have to agree with <a href="?node=sundialsvc4">sundialsvc4</a>. Threads are so expensive to create that you are almost aways much better off to create a set number of threads (usually no more than the physical number o... note Fri, 01 Aug 2014 10:27:05 +0000 http://perlmonks.org/index.pl?node_id=1095875 1095875 1071917 2014-08-01 06:27:05 SimonPratt Re: Who would be the most fun to work for? Anonymous Monk http://perlmonks.org/index.pl?node_id=1095874 Xena, naturally... note Fri, 01 Aug 2014 10:23:31 +0000 http://perlmonks.org/index.pl?node_id=1095874 1095874 961 2014-08-01 06:23:31 Anonymous Monk Re: When to Use Object Oriented approach in Perl? (RFC) tobyink http://perlmonks.org/index.pl?node_id=1095873 Method calls are very slightly slower than function calls... use v5.10; use strict; use warnings; use Benchmark qw( cmpthese ); sub Foo::bar { $_&#91;0&#93;&#91;0&#93; or die } our $object = ble... note Fri, 01 Aug 2014 10:20:42 +0000 http://perlmonks.org/index.pl?node_id=1095873 1095873 757127 2014-08-01 06:20:42 tobyink Re^3: Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works salva http://perlmonks.org/index.pl?node_id=1095871 Then, connect to the remote server in parallel and inspect what the wrapper script is doing (for instance, using strace or a debugger), it should be waiting for something.... note Fri, 01 Aug 2014 09:48:13 +0000 http://perlmonks.org/index.pl?node_id=1095871 1095871 446266 2014-08-01 05:48:13 salva Re: $ARGV[0] meaning AppleFritter http://perlmonks.org/index.pl?node_id=1095869 Howdy grewal, and welcome back again to the Monastery! Although all (Perl-related) questions are welcome in the Monastery, I'd like to submit that you could've saved yourself the trouble of havin... note Fri, 01 Aug 2014 09:32:18 +0000 http://perlmonks.org/index.pl?node_id=1095869 1095869 1084031 2014-08-01 05:32:18 AppleFritter Re^2: When to Use Object Oriented approach in Perl? (RFC) thanos1983 http://perlmonks.org/index.pl?node_id=1095866 Hello sundialsvc4, You are absolutely right, I was reading all the time about OO programming and I was not able to understand the abilities of such a coding process. The moment that I cre... note Fri, 01 Aug 2014 09:19:37 +0000 http://perlmonks.org/index.pl?node_id=1095866 1095866 1069339 2014-08-01 05:19:37 thanos1983 Re^2: When to Use Object Oriented approach in Perl? (gah) thanos1983 http://perlmonks.org/index.pl?node_id=1095865 Hello tye, You are right, a user would not been able to observe a difference even of a second. Some times I found my self spending too much time and effort trying to improve and compare m... note Fri, 01 Aug 2014 09:13:21 +0000 http://perlmonks.org/index.pl?node_id=1095865 1095865 1069339 2014-08-01 05:13:21 thanos1983 Re: SAP::Rfc not recognizing SAP as Unicode Anonymous Monk http://perlmonks.org/index.pl?node_id=1095864 <a href="http://search.cpan.org/perldoc?SAP%3A%3ARfc">SAP::Rfc</a> was last updated almost three years ago, has 11 open bugs, its test suite doesn't look very useful, and &#91;https://rt.cpan.org/Public/Dist/Display.html?Name=SAP-Rfc|three of the open... note Fri, 01 Aug 2014 09:11:18 +0000 http://perlmonks.org/index.pl?node_id=1095864 1095864 961 2014-08-01 05:11:18 Anonymous Monk Re: $ARGV[0] meaning sandy105 http://perlmonks.org/index.pl?node_id=1095863 $argv&#91;0&#93; is the first argument passed to the program eg. perl script.pl "location_filetoopen" ... note Fri, 01 Aug 2014 09:10:14 +0000 http://perlmonks.org/index.pl?node_id=1095863 1095863 1092110 2014-08-01 05:10:14 sandy105 Re^2: When to Use Object Oriented approach in Perl? (RFC) thanos1983 http://perlmonks.org/index.pl?node_id=1095862 Hello Dave, I totally agree with you, there no right and wrong solution. A solution is a solution, maybe at early stages like me the solution might not be perfect or well written but I gu... note Fri, 01 Aug 2014 09:04:21 +0000 http://perlmonks.org/index.pl?node_id=1095862 1095862 1069339 2014-08-01 05:04:21 thanos1983 Re^2: Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works Technext http://perlmonks.org/index.pl?node_id=1095861 It gets stuck only when it's invoking a wrapper script present on remote machine. SCP works fine.... note Fri, 01 Aug 2014 08:47:50 +0000 http://perlmonks.org/index.pl?node_id=1095861 1095861 971797 2014-08-01 04:47:50 Technext Re: use of $* GrandFather http://perlmonks.org/index.pl?node_id=1095860 $* was used to enable multi-line matching in <a href="http://perldoc.perl.org/perlre.html#regular%20expressions">regular expressions</a>. It's been replaced by the m and s flags. m lets ^ and $ match at line ends. s lets . match new line characters. ... note Fri, 01 Aug 2014 08:41:28 +0000 http://perlmonks.org/index.pl?node_id=1095860 1095860 461912 2014-08-01 04:41:28 GrandFather Re: use of $* moritz http://perlmonks.org/index.pl?node_id=1095859 It's documented in <a href="http://perldoc.perl.org/perlvar.html">perlvar</a>: <a href="http://perldoc.perl.org/perlvar.html#%24%2A">$*</a>. The docs also say what you should use instead: You should use the /s and /m regexp modifiers instead. ... note Fri, 01 Aug 2014 08:40:24 +0000 http://perlmonks.org/index.pl?node_id=1095859 1095859 616540 2014-08-01 04:40:24 moritz Re^2: 24 hour to 12 hour using DateTime htmanning http://perlmonks.org/index.pl?node_id=1095857 Thank you so much!... note Fri, 01 Aug 2014 08:30:13 +0000 http://perlmonks.org/index.pl?node_id=1095857 1095857 445135 2014-08-01 04:30:13 htmanning Re: Meeting & conference announcements (updated with suggested guidelines) moritz http://perlmonks.org/index.pl?node_id=1095854 Some events are announced here (in <a href="?node=Perl%20News">Perl News</a>, as has been pointed out) because somebody felt strongly enough about the event to announce it, and remembered good ol' perlmonks. I cannot ... note Fri, 01 Aug 2014 07:47:54 +0000 http://perlmonks.org/index.pl?node_id=1095854 1095854 616540 2014-08-01 03:47:54 moritz Re: $ARGV[0] meaning Anonymous Monk http://perlmonks.org/index.pl?node_id=1095853 Also search <a href="http://perldoc.perl.org/perlintro.html">perlintro</a> for &#91;0&#93; :)... note Fri, 01 Aug 2014 07:25:27 +0000 http://perlmonks.org/index.pl?node_id=1095853 1095853 961 2014-08-01 03:25:27 Anonymous Monk Re: $ARGV[0] meaning Corion http://perlmonks.org/index.pl?node_id=1095852 @ARGV is documented in <a href="http://perldoc.perl.org/perlvar.html">perlvar</a>.... note Fri, 01 Aug 2014 07:02:28 +0000 http://perlmonks.org/index.pl?node_id=1095852 1095852 5348 2014-08-01 03:02:28 Corion Re: Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works salva http://perlmonks.org/index.pl?node_id=1095851 And where does it get stuck? Anyway, try replacing Net::SSH::Perl and Net::SCP::Expect usage by <a href="http://search.cpan.org/perldoc?Net%3A%3AOpenSSH">Net::OpenSSH</a>.... note Fri, 01 Aug 2014 06:59:21 +0000 http://perlmonks.org/index.pl?node_id=1095851 1095851 446266 2014-08-01 02:59:21 salva Re: Indent, anonymous sub, or lexical sub for module private code? Laurent_R http://perlmonks.org/index.pl?node_id=1095848 I quite regularly write subs that are called only once (e.g. to read a param file and load it into a param hash). Granted, it does not look quite right if you consider that the main point of a sub is ... note Fri, 01 Aug 2014 06:39:52 +0000 http://perlmonks.org/index.pl?node_id=1095848 1095848 992570 2014-08-01 02:39:52 Laurent_R Re: How do i replace one variable with another after searching for a pattern CountZero http://perlmonks.org/index.pl?node_id=1095847 I do hope the OP is now not going to use this solution to spam all and sundry with annoying home loan offers. ... note Fri, 01 Aug 2014 06:24:26 +0000 http://perlmonks.org/index.pl?node_id=1095847 1095847 198160 2014-08-01 02:24:26 CountZero Re^4: How to make this substitutions without splitting the strings? (tr/// behavior) AnomalousMonk http://perlmonks.org/index.pl?node_id=1095846 Ah, the undocumented, documented! That feels better! I looked for just this sort of assertion (a coupe of times) and couldn't find it. Thanks! ... note Fri, 01 Aug 2014 05:34:02 +0000 http://perlmonks.org/index.pl?node_id=1095846 1095846 634253 2014-08-01 01:34:02 AnomalousMonk Re^3: How to make this substitutions without splitting the strings? (tr/// behavior) farang http://perlmonks.org/index.pl?node_id=1095845 Do you know of any documentation of this "leftmost match" feature in the tr/// built-in? From <a href="http://perldoc.perl.org/perlop.html">perlop</a>: "If multiple transliterations are given f... note Fri, 01 Aug 2014 05:22:35 +0000 http://perlmonks.org/index.pl?node_id=1095845 1095845 1021749 2014-08-01 01:22:35 farang Shivangi17 Shivangi17 http://perlmonks.org/index.pl?node_id=1095877 user Fri, 01 Aug 2014 10:31:14 +0000 http://perlmonks.org/index.pl?node_id=1095877 1095877 1095877 2014-08-01 06:31:14 Shivangi17 abhi77 abhi77 http://perlmonks.org/index.pl?node_id=1095867 user Fri, 01 Aug 2014 09:30:22 +0000 http://perlmonks.org/index.pl?node_id=1095867 1095867 1095867 2014-08-01 05:30:22 abhi77 millan123 millan123 http://perlmonks.org/index.pl?node_id=1095855 user Fri, 01 Aug 2014 08:17:39 +0000 http://perlmonks.org/index.pl?node_id=1095855 1095855 1095855 2014-08-01 04:17:39 millan123 jun.ding jun.ding http://perlmonks.org/index.pl?node_id=1095843 user Fri, 01 Aug 2014 05:17:04 +0000 http://perlmonks.org/index.pl?node_id=1095843 1095843 1095843 2014-08-01 01:17:04 jun.ding