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 2015-05-28 08:54:09 rss,clean Wed May 27 22:54:09 2015 30 20150527225409 Wed May 27 22:54:09 2015 http://perlmonks.org/ Anonymous Monk RFC: A call to bioinformationalists for some generic information. BrowserUk http://perlmonks.org/index.pl?node_id=1128096 I don't need or want anything proprietary! (But accuracy would help!) If you have recently run a fuzzy search for short sequences (primers?) (... perlquestion Thu, 28 May 2015 03:59:25 +0000 http://perlmonks.org/index.pl?node_id=1128096 1128096 171588 2015-05-27 23:59:25 BrowserUk Replace specific matching word with differnt word leelu http://perlmonks.org/index.pl?node_id=1128092 Please need some help how to replace only "text" with "update" Eg: i have data as below and first record "text" need to change to "update" and not other records input file ------------ text ... perlquestion Thu, 28 May 2015 03:38:54 +0000 http://perlmonks.org/index.pl?node_id=1128092 1128092 1127635 2015-05-27 23:38:54 leelu XML Parsing RJP_NxtGam http://perlmonks.org/index.pl?node_id=1128089 I have this XML string which I need to know the root name to parse the remaining elements. How can I parse the root name? Note: I need to parse several different string with different root names. ... perlquestion Thu, 28 May 2015 02:58:05 +0000 http://perlmonks.org/index.pl?node_id=1128089 1128089 1128086 2015-05-27 22:58:05 RJP_NxtGam Re^4: RFC: Swagger-codegen for Perl Anonymous Monk http://perlmonks.org/index.pl?node_id=1128107 yes, i want to use pod but didn't have cycle to do it :( if you've time, would be nice if you can submit a PR to update the comment Um, see <a href="https://metacpan.org/module/Swagger2%3A%3APOD">Swagger2::POD</a> - Convert swagger... note Thu, 28 May 2015 08:12:54 +0000 http://perlmonks.org/index.pl?node_id=1128107 1128107 961 2015-05-28 04:12:54 Anonymous Monk Re: Solved - Using a module under VMS Laurent_R http://perlmonks.org/index.pl?node_id=1128106 Just in the context of having answered <a href="?node=Anonymous%20Monk">Anonymous Monk</a> above and reformulated my question, I found the origin of the problem. While trying to solve my first problem (the path to the module not ... note Thu, 28 May 2015 08:04:42 +0000 http://perlmonks.org/index.pl?node_id=1128106 1128106 992570 2015-05-28 04:04:42 Laurent_R Re^2: Using a module under VMS Laurent_R http://perlmonks.org/index.pl?node_id=1128105 Thank you for your answer, <a href="?node=Anonymous%20Monk">Anonymous Monk</a>, but yes, I have figured out this caveat on the lib pragma, which is why I tried both these syntaxes: # use lib ('DISK$ECD:<a href="?node=DMC">DMC</a>'); # does not ... note Thu, 28 May 2015 07:34:51 +0000 http://perlmonks.org/index.pl?node_id=1128105 1128105 992570 2015-05-28 03:34:51 Laurent_R Re: XML Parsing Discipulus http://perlmonks.org/index.pl?node_id=1128104 Hello, if i understand your question, ie retrieve the root name of the XML (not in your example), you can do it using <a href="http://search.cpan.org/search?mode=module&amp;query=XML%3A%3ATwig">XML::Twig</a> #!perl use strict; use warnings; use XML::Twi... note Thu, 28 May 2015 06:57:53 +0000 http://perlmonks.org/index.pl?node_id=1128104 1128104 174111 2015-05-28 02:57:53 Discipulus Re: Question about parentheses in regex Sathishkumar http://perlmonks.org/index.pl?node_id=1128103 Hi, check with below code. my $text = "to { (This Word) }"; my $remove = "{ (This Word) }"; $text =~ s/\Q$remove\E//; print $remove, $/, $/; print $text; Regards, Sathis... note Thu, 28 May 2015 06:39:33 +0000 http://perlmonks.org/index.pl?node_id=1128103 1128103 1003245 2015-05-28 02:39:33 Sathishkumar Re: Replace specific matching word with differnt word Anonymous Monk http://perlmonks.org/index.pl?node_id=1128102 I have tried with s/text/update/g; all records are updated instead of first record Why do you think this happened, what do you think needs to change to fix it? How is the l... note Thu, 28 May 2015 06:20:50 +0000 http://perlmonks.org/index.pl?node_id=1128102 1128102 961 2015-05-28 02:20:50 Anonymous Monk Re^2: MCE and DBI pmamatsis http://perlmonks.org/index.pl?node_id=1128101 Hi @marioroy, let me thank you once more for your quick reply and assistance. I have tried your suggestion and it works like a charm! I am also not quite sure about the 'why' the perl runtime... note Thu, 28 May 2015 06:07:42 +0000 http://perlmonks.org/index.pl?node_id=1128101 1128101 1127818 2015-05-28 02:07:42 pmamatsis Re^4: PERL : Parse/Open an excel file and replace the negative values in a sheet to '0' DarshanS http://perlmonks.org/index.pl?node_id=1128100 Infact my problem is something else. If i am able to get the logic for the question i have asked for, i would be able to resolve. As far i came till now on this. Just incase if you would like to h... note Thu, 28 May 2015 05:34:24 +0000 http://perlmonks.org/index.pl?node_id=1128100 1128100 1127786 2015-05-28 01:34:24 DarshanS Re^8: an algorithm to randomly pick items that are present at different frequencies efoss http://perlmonks.org/index.pl?node_id=1128099 Hi BrowserUk, That was it. Thanks so much!!! Sorry - I didn't mean to imply that there weren't warnings and errors - there were. They led me to look into what was in @odds and @vals.... note Thu, 28 May 2015 04:54:58 +0000 http://perlmonks.org/index.pl?node_id=1128099 1128099 755851 2015-05-28 00:54:58 efoss Re: win32API midi input perltux http://perlmonks.org/index.pl?node_id=1128098 Hi, I realise this is a two year old thread but in case you are still looking for help with this I have working code for detecting available MIDI devices, for MIDI OUT and sort of got MIDI IN working ... note Thu, 28 May 2015 04:45:35 +0000 http://perlmonks.org/index.pl?node_id=1128098 1128098 998701 2015-05-28 00:45:35 perltux Re^3: want to ignore pattern under{} in split command AnomalousMonk http://perlmonks.org/index.pl?node_id=1128097 You're very welcome &mdash; it was good for me, too. But <a href="?node=Anomalousmonk">I</a> am not <a href="?node=toolic">toolic</a>. ... note Thu, 28 May 2015 04:01:31 +0000 http://perlmonks.org/index.pl?node_id=1128097 1128097 634253 2015-05-28 00:01:31 AnomalousMonk Re: Replace specific matching word with differnt word AnomalousMonk http://perlmonks.org/index.pl?node_id=1128095 <a href="?node=leelu">leelu</a>: In addition to <a href="?node=roboticus">roboticus</a>'s comment about not showing any code, please note that you're not really showing any data either &mdash; at least not in a form that can easily be interpreted.... note Thu, 28 May 2015 03:55:46 +0000 http://perlmonks.org/index.pl?node_id=1128095 1128095 634253 2015-05-27 23:55:46 AnomalousMonk Re^2: want to ignore pattern under{} in split command jag194u http://perlmonks.org/index.pl?node_id=1128094 Thanks toolic ...it worked for me.... note Thu, 28 May 2015 03:51:06 +0000 http://perlmonks.org/index.pl?node_id=1128094 1128094 1127919 2015-05-27 23:51:06 jag194u Re: Replace specific matching word with differnt word roboticus http://perlmonks.org/index.pl?node_id=1128093 <a href="?node=leelu">leelu</a>: If all records are updated, then read only one record at a time, and perform your substitution only on the first record. You don't show code, so I can't tell you exactly what you'... note Thu, 28 May 2015 03:45:29 +0000 http://perlmonks.org/index.pl?node_id=1128093 1128093 533863 2015-05-27 23:45:29 roboticus Re^5: Mojo Dom extract Anonymous Monk http://perlmonks.org/index.pl?node_id=1128091 right or wrong, is it important? I think not... note Thu, 28 May 2015 03:04:55 +0000 http://perlmonks.org/index.pl?node_id=1128091 1128091 961 2015-05-27 23:04:55 Anonymous Monk Re: XML Parsing Anonymous Monk http://perlmonks.org/index.pl?node_id=1128090 See examples via <a href="?node_id=1126066">Re^5: Extraction of value with XMLLIB</a>... note Thu, 28 May 2015 03:00:52 +0000 http://perlmonks.org/index.pl?node_id=1128090 1128090 961 2015-05-27 23:00:52 Anonymous Monk Re^3: Question about parentheses in regex Anonymous Monk http://perlmonks.org/index.pl?node_id=1128088 <a href="?node_id=1089104">Von_Halen</a>: What does the <a href="http://perldoc.perl.org/functions/quotemeta.html">quotemeta</a> do in this case? The <a href="http://perldoc.perl.org/functions/quotemeta.html">quotemeta</a> link says click me and read me... note Thu, 28 May 2015 02:54:12 +0000 http://perlmonks.org/index.pl?node_id=1128088 1128088 961 2015-05-27 22:54:12 Anonymous Monk