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-10-21 01:41:03 rss,clean Mon Oct 20 15:41:03 2014 30 20141020154103 Mon Oct 20 15:41:03 2014 http://perlmonks.org/ Anonymous Monk Comments detected in strings astroboy http://perlmonks.org/index.pl?node_id=1104498 Hi all - I'm trying to identify comments in code (so that ultimately I'll strip them out). I've tried using Regexp::Common::comment, but it appears to detect comments in strings when they should reall... perlquestion Mon, 20 Oct 2014 21:09:58 +0000 http://perlmonks.org/index.pl?node_id=1104498 1104498 300618 2014-10-20 17:09:58 astroboy Net::Telnet::Cisco - command timed-out error ArifS http://perlmonks.org/index.pl?node_id=1104497 I am using the following script, and it works fine with Host1- HostName1#, host =, port =23 OUTPUT: Configuration register is 0x2102 Press any key to continue . . ... perlquestion Mon, 20 Oct 2014 21:06:22 +0000 http://perlmonks.org/index.pl?node_id=1104497 1104497 1098998 2014-10-20 17:06:22 ArifS Re: Perltidy indents too much when there are stacked opening tokens LanX http://perlmonks.org/index.pl?node_id=1104506 The current behavior is a good default, since stacked parens doesn't mean that all data is on the same depth (see discoverX ) and yes perltidy doesn't seem to have any finer control about data ... note Tue, 21 Oct 2014 01:07:41 +0000 http://perlmonks.org/index.pl?node_id=1104506 1104506 708738 2014-10-20 21:07:41 LanX Re: Converting Active Directory date Time to something useful astroboy http://perlmonks.org/index.pl?node_id=1104505 In case someone else is researching this, I've put down a solution that I've cobbled from http://code.activestate.com/lists/perl-win... note Tue, 21 Oct 2014 00:59:04 +0000 http://perlmonks.org/index.pl?node_id=1104505 1104505 300618 2014-10-20 20:59:04 astroboy Re^2: Comments detected in strings (|) astroboy http://perlmonks.org/index.pl?node_id=1104504 Thanks for your reply. So I guess that Regexp::Common::comment doesn't have this out of the box? The reason I looked at using it was because I was under the apprehension that its purpose was to stop u... note Tue, 21 Oct 2014 00:41:46 +0000 http://perlmonks.org/index.pl?node_id=1104504 1104504 300618 2014-10-20 20:41:46 astroboy Re: SOAP Lite WSDL Question casey0999 http://perlmonks.org/index.pl?node_id=1104503 Thanks to both of you for your input. I wonder if SOAP::Lite is having trouble deconstructing this particular WSDL... The soapUI utility program has no problem.. hmmm... I think I will try a dif... note Mon, 20 Oct 2014 22:53:15 +0000 http://perlmonks.org/index.pl?node_id=1104503 1104503 1104274 2014-10-20 18:53:15 casey0999 Re^2: For retirement, I am banking on: wjw http://perlmonks.org/index.pl?node_id=1104502 The version I heard was not quite as good. Went something like; Having won the lottery, a life-long farmer was asked what he would do with all the money he won. "Keep on farming 'til it's gone.... note Mon, 20 Oct 2014 22:18:02 +0000 http://perlmonks.org/index.pl?node_id=1104502 1104502 310300 2014-10-20 18:18:02 wjw Re: Can Perl write multiple files at the same time? biohisham http://perlmonks.org/index.pl?node_id=1104501 You might as well give the module Many Core Engines (<a href="http://search.cpan.org/~marioroy/MCE-1.515/lib/MCE/Core.pod">MCE</a>) a go. ... note Mon, 20 Oct 2014 22:14:04 +0000 http://perlmonks.org/index.pl?node_id=1104501 1104501 769448 2014-10-20 18:14:04 biohisham Re: Comments detected in strings (|) tye http://perlmonks.org/index.pl?node_id=1104500 To skip comment-like sequences in strings, you need to parse both strings and comments (and anything else that might contain something that looks like a string or looks like a comment). Most lik... note Mon, 20 Oct 2014 21:54:25 +0000 http://perlmonks.org/index.pl?node_id=1104500 1104500 22609 2014-10-20 17:54:25 tye Re^3: Using Shift with Parameters in a subroutine tobyink http://perlmonks.org/index.pl?node_id=1104499 FYI: <a href="http://search.cpan.org/perldoc?Method%3A%3ASignatures">Method::Signatures</a> doesn't use the keyword API introduced in Perl 5.14. Instead, it uses <a href="http://search.cpan.org/perldoc?Devel%3A%3ADeclare">Devel::Declare</a>. Ditto <a href="http://search.cpan.org/perldoc?MooseX%3A%3AMethod%3A%3ASignatures">MooseX::Method::Signatures</a> and &#91;mod://Method::Sig... note Mon, 20 Oct 2014 21:23:51 +0000 http://perlmonks.org/index.pl?node_id=1104499 1104499 757127 2014-10-20 17:23:51 tobyink Re^2: Create MS Word doc in Linux rbholder http://perlmonks.org/index.pl?node_id=1104496 I am using MsOffice::Word::HTML::Writer and it works fine, but I am currently trying to install it on another server but getting an error message - Failed during this command: DAMI/MsOffice-Wor... note Mon, 20 Oct 2014 21:00:21 +0000 http://perlmonks.org/index.pl?node_id=1104496 1104496 1100494 2014-10-20 17:00:21 rbholder Re: Restoring deleted files under Linux Anonymous Monk http://perlmonks.org/index.pl?node_id=1104493 Thank you!!!!!!!! Seriously, your script just saved me and my sanity!... note Mon, 20 Oct 2014 20:43:49 +0000 http://perlmonks.org/index.pl?node_id=1104493 1104493 961 2014-10-20 16:43:49 Anonymous Monk Re^2: Net::FTP::Recursive - how to use rls zalezny http://perlmonks.org/index.pl?node_id=1104492 Thank You very much for Your fast support! Its working like a charm. GoToBurn - thanks also for Your suggestions. This forum is increadably fast ! ... note Mon, 20 Oct 2014 20:28:27 +0000 http://perlmonks.org/index.pl?node_id=1104492 1104492 1104482 2014-10-20 16:28:27 zalezny Re^4: Best XML library to validate XML from untrusted source Jenda http://perlmonks.org/index.pl?node_id=1104491 Say, because it doesn't do anything? I mean, yes, it does some kind of basic format validation, but once you actually need to extract some data out of the file, things start getting complicated ver... note Mon, 20 Oct 2014 20:15:41 +0000 http://perlmonks.org/index.pl?node_id=1104491 1104491 105128 2014-10-20 16:15:41 Jenda Re^4: sql output format erix http://perlmonks.org/index.pl?node_id=1104490 lmgtfy, for <a href="http://www.postgresql.org/docs/current/static/typeconv-union-case.html">PostgreSQL</a>, <a href="http://docs.oracle.com/database/121/SQLRF/queries004.htm#SQLRF52341">Oracle</a>, and &#91;http://w... note Mon, 20 Oct 2014 20:11:37 +0000 http://perlmonks.org/index.pl?node_id=1104490 1104490 399498 2014-10-20 16:11:37 erix Re: Net::FTP::Recursive - how to use rls Loops http://perlmonks.org/index.pl?node_id=1104489 You can use <a href="http://search.cpan.org/perldoc?File%3A%3ATee">File::Tee</a> to capture standard output to a file as well as letting it go to the screen. Also, you need to pass the filehandle to rls with a Filehandle hash key: use ... note Mon, 20 Oct 2014 20:08:20 +0000 http://perlmonks.org/index.pl?node_id=1104489 1104489 1026244 2014-10-20 16:08:20 Loops Re: Problem with monitoring running tasks BrowserUk http://perlmonks.org/index.pl?node_id=1104488 It would be much easier for you to debug, and far more likely to attract help, if you reduce the problem to a runnable, stand alone demonstration of the problem. ... note Mon, 20 Oct 2014 19:57:40 +0000 http://perlmonks.org/index.pl?node_id=1104488 1104488 171588 2014-10-20 15:57:40 BrowserUk Re: Net::FTP::Recursive - how to use rls GotToBTru http://perlmonks.org/index.pl?node_id=1104487 The filehandle is what the open command creates, FH in your case. I suggest two things to try: (a) remove the around FH, and (b) include the parameter name. $ftp->rls(FH) or die $ftp-... note Mon, 20 Oct 2014 19:43:42 +0000 http://perlmonks.org/index.pl?node_id=1104487 1104487 844862 2014-10-20 15:43:42 GotToBTru Re: Print Data::Dumper with format Anonymous Monk http://perlmonks.org/index.pl?node_id=1104486 Am sure others have pointed out relevant solution, which I believe worked. But if I may suggest, what improvement for your "contact_entry" subroutine. Instead of the way it is presently im... note Mon, 20 Oct 2014 19:42:45 +0000 http://perlmonks.org/index.pl?node_id=1104486 1104486 961 2014-10-20 15:42:45 Anonymous Monk gandolf989 gandolf989 http://perlmonks.org/index.pl?node_id=1104494 user Mon, 20 Oct 2014 20:49:29 +0000 http://perlmonks.org/index.pl?node_id=1104494 1104494 1104494 2014-10-20 16:49:29 gandolf989