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 clean,rss Thu Jun 22 07:15:20 2017 Anonymous Monk 961 http://perlmonks.org/ 20170622071520 PerlMonks 30 Thu Jun 22 07:15:20 2017 2017-06-22 17:15:20 Not able Login into webpage which use javascript while load trahulprajapati http://perlmonks.org/index.pl?node_id=1193301 Hi Monks I'm trying to login to a website which is using javascipt while loading. I have tried with WWW:Machanize but it is not working as WWW:Machanize not support javascript. Webpage is dyna... perlquestion Thu, 22 Jun 2017 15:17:17 +0000 http://perlmonks.org/index.pl?node_id=1193301 1193301 1193298 2017-06-22 11:17:17 trahulprajapati Pattern match and splitting of that Nansh http://perlmonks.org/index.pl?node_id=1193292 Hi My string looks like below RABBIT 45 -126.06686 my output should be like 1)RABBIT 2)45 3)-126.06686 #!usr/bin/perl use strict; use warnings; my $string="RABBIT 45 ... perlquestion Thu, 22 Jun 2017 13:29:38 +0000 http://perlmonks.org/index.pl?node_id=1193292 1193292 1181010 2017-06-22 09:29:38 Nansh Pulling from a list and inserting into XML documents gng4life http://perlmonks.org/index.pl?node_id=1193291 Hello All, First post so go easy on me. I'm getting back into Perl after not touching it for years so I am like a noob. This is what I need to do. I have text file A that three fields, for examp... perlquestion Thu, 22 Jun 2017 13:25:40 +0000 http://perlmonks.org/index.pl?node_id=1193291 1193291 1193278 2017-06-22 09:25:40 gng4life Re^2: Not able Login into webpage which use javascript while load trahulprajapati http://perlmonks.org/index.pl?node_id=1193307 thank for your prompt reply! I have insatll WWW::Mechanize::Firefox module by cpan but it is not working, it says tried but it is not working WWW::Mechanize::Firefox Failed to co... note Thu, 22 Jun 2017 16:57:27 +0000 http://perlmonks.org/index.pl?node_id=1193307 1193307 1193298 2017-06-22 12:57:27 trahulprajapati Re: Not able Login into webpage which use javascript while load haukex http://perlmonks.org/index.pl?node_id=1193306 You will have to use another module. Please see <a href="http://search.cpan.org/perldoc?WWW%3A%3AMechanize%3A%3AFAQ">WWW::Mechanize::FAQ</a> for details, in particular "Which modules work like Mechanize and have JavaScript support?" Fellow monk <a href="?node=Corion">Corion</a> is the a... note Thu, 22 Jun 2017 16:05:46 +0000 http://perlmonks.org/index.pl?node_id=1193306 1193306 830549 2017-06-22 12:05:46 haukex Re^3: CPAN Installation of Perl Packages Fails m_jaser http://perlmonks.org/index.pl?node_id=1193305 Thanks a lot for the replies...! Here are the details of the system i'm using: <a href="?node=~">~</a>$ perl -v This is perl 5, version 14, subversion 4 (v5.14.4) built for cygwin-thread-multi-64int (... note Thu, 22 Jun 2017 15:40:57 +0000 http://perlmonks.org/index.pl?node_id=1193305 1193305 1184249 2017-06-22 11:40:57 m_jaser Re^5: An overlapping regex capture poj http://perlmonks.org/index.pl?node_id=1193304 The problem is earlier where $id is set for the > lines but then cleared on the subsequent sequence lines while(){ my $id = ''; chomp; if ($_ =~ /^>(.+)/){ ... note Thu, 22 Jun 2017 15:33:04 +0000 http://perlmonks.org/index.pl?node_id=1193304 1193304 221725 2017-06-22 11:33:04 poj Re: Not able Login into webpage which use javascript while load marto http://perlmonks.org/index.pl?node_id=1193303 "WWW:Machanize is not support javascript so is there any way by which i can login to site? I we cannot use WWW:Machanize::Firefox ,WWW::Scripter etc" Why can't use use them? An alter... note Thu, 22 Jun 2017 15:29:16 +0000 http://perlmonks.org/index.pl?node_id=1193303 1193303 324763 2017-06-22 11:29:16 marto Re^3: Win32::GUI - error adding a bitmap in button Anonymous Monk http://perlmonks.org/index.pl?node_id=1193302 I think your problem is you're trying to load a .jpg and not a .bmp... note Thu, 22 Jun 2017 15:19:46 +0000 http://perlmonks.org/index.pl?node_id=1193302 1193302 961 2017-06-22 11:19:46 Anonymous Monk Re: Pulling from a list and inserting into XML documents haukex http://perlmonks.org/index.pl?node_id=1193300 Two modules you should look at are <a href="http://search.cpan.org/perldoc?Text%3A%3ACSV">Text::CSV</a> and <a href="http://search.cpan.org/perldoc?XML%3A%3ATwig">XML::Twig</a>. There are several other good XML modules, but this one is well-suited for processing XML documents as a stream. What is u... note Thu, 22 Jun 2017 14:39:43 +0000 http://perlmonks.org/index.pl?node_id=1193300 1193300 830549 2017-06-22 10:39:43 haukex Re: Pulling from a list and inserting into XML documents thanos1983 http://perlmonks.org/index.pl?node_id=1193297 Hello <a href="?node_id=1193278">gng4life</a>, Welcome back to Perl, and welcome to the monastery. You do not show us any code that you have tried to create and resolve your problem and from your d... note Thu, 22 Jun 2017 14:24:06 +0000 http://perlmonks.org/index.pl?node_id=1193297 1193297 1069339 2017-06-22 10:24:06 thanos1983 Re: Pattern match and splitting of that Corion http://perlmonks.org/index.pl?node_id=1193296 Which part of your code should extract -126.06686 from your string? Also read <a href="http://perldoc.perl.org/perlretut.html">perlretut</a> and <a href="http://perldoc.perl.org/perlre.html">perlre</a>.... note Thu, 22 Jun 2017 13:40:20 +0000 http://perlmonks.org/index.pl?node_id=1193296 1193296 5348 2017-06-22 09:40:20 Corion Re: Pattern match and splitting of that toolic http://perlmonks.org/index.pl?node_id=1193295 <a href="http://perldoc.perl.org/functions/split.html">split</a> is an appropriate tool for this job: use strict; use warnings; use Data::Dumper; my $string = "RABBIT 45 -126.06686"; my @parts = split /\s+/, $string; print Dumper(\@part... note Thu, 22 Jun 2017 13:39:34 +0000 http://perlmonks.org/index.pl?node_id=1193295 1193295 622051 2017-06-22 09:39:34 toolic Re: Pattern match and splitting of that marto http://perlmonks.org/index.pl?node_id=1193294 "Read <a href="?node_id=237057">Where should I post X?</a> if you're not absolutely sure you're posting in the right place." This is displayed every time you post, you keep ignoring this and requests to post in the approp... note Thu, 22 Jun 2017 13:35:20 +0000 http://perlmonks.org/index.pl?node_id=1193294 1193294 324763 2017-06-22 09:35:20 marto Re: Pattern match and splitting of that Eily http://perlmonks.org/index.pl?node_id=1193293 Once again, your questions belong in the Seekers of Perl Wisdom section, not PerlMonks Discussion. So you should be posting <a href="?node_id=479#post">here</a>. Edit: BTW, your code doesn't... note Thu, 22 Jun 2017 13:34:03 +0000 http://perlmonks.org/index.pl?node_id=1193293 1193293 1039428 2017-06-22 09:34:03 Eily Re^5: How to remove CR LF in Notepad++ Anonymous Monk http://perlmonks.org/index.pl?node_id=1193288 thanks it worked :)... note Thu, 22 Jun 2017 13:00:10 +0000 http://perlmonks.org/index.pl?node_id=1193288 1193288 961 2017-06-22 09:00:10 Anonymous Monk Re^4: Joint Database Technology hippo http://perlmonks.org/index.pl?node_id=1193287 Is POSTGRESQL totally FREE to implement in a large organization? Is it as simple to maintain as ISAM (Flat Files/SDBM)? Yes and yes. And it has transactions. An... note Thu, 22 Jun 2017 12:48:32 +0000 http://perlmonks.org/index.pl?node_id=1193287 1193287 885521 2017-06-22 08:48:32 hippo (OT) Re^3: from txt file to array hippo http://perlmonks.org/index.pl?node_id=1193286 See "How do I hide someone else's annoying signature?" in <a href="?node_id=323419">Signatures and Node Templates</a>.... note Thu, 22 Jun 2017 12:40:15 +0000 http://perlmonks.org/index.pl?node_id=1193286 1193286 885521 2017-06-22 08:40:15 hippo Re^6: An overlapping regex capture haukex http://perlmonks.org/index.pl?node_id=1193285 No, you got the error saying that $filename.fa is uninitialized. So perl saw that as a variable name ... Sorry, but that's not correct in this case, a dot does end ... note Thu, 22 Jun 2017 12:40:09 +0000 http://perlmonks.org/index.pl?node_id=1193285 1193285 830549 2017-06-22 08:40:09 haukex Re^5: An overlapping regex capture 1nickt http://perlmonks.org/index.pl?node_id=1193280 Did you try printing the values of your variables as I suggested? The way forward always starts with a minimal test. ... note Thu, 22 Jun 2017 12:01:14 +0000 http://perlmonks.org/index.pl?node_id=1193280 1193280 1130276 2017-06-22 08:01:14 1nickt Re^4: An overlapping regex capture Peter Keystrokes http://perlmonks.org/index.pl?node_id=1193277 Okay, I fixed up the items you suggested I should, and so my script is looking like this: #!/usr/bin/perl use strict; use warnings; open my $fh, '... note Thu, 22 Jun 2017 11:52:13 +0000 http://perlmonks.org/index.pl?node_id=1193277 1193277 1189649 2017-06-22 07:52:13 Peter Keystrokes Re^3: from txt file to array karlgoethebier http://perlmonks.org/index.pl?node_id=1193276 I thought about it and jumped to the conclusion that "we" must withstand my signature. Regards, Karl ... note Thu, 22 Jun 2017 11:37:58 +0000 http://perlmonks.org/index.pl?node_id=1193276 1193276 1001958 2017-06-22 07:37:58 karlgoethebier Re^3: from txt file to array 1nickt http://perlmonks.org/index.pl?node_id=1193275 With all due respect, "we" have an equally hard time with punctuation and grammar errors in sigs. The way forward always starts wi... note Thu, 22 Jun 2017 11:28:46 +0000 http://perlmonks.org/index.pl?node_id=1193275 1193275 1130276 2017-06-22 07:28:46 1nickt Re^5: An overlapping regex capture hexcoder http://perlmonks.org/index.pl?node_id=1193274 No, you got the error saying that $filename.fa is uninitialized. So perl saw that as a variable name while you intended to only use $filename instead. In order to delimi... note Thu, 22 Jun 2017 11:22:32 +0000 http://perlmonks.org/index.pl?node_id=1193274 1193274 615417 2017-06-22 07:22:32 hexcoder trahulprajapati trahulprajapati http://perlmonks.org/index.pl?node_id=1193298 user Thu, 22 Jun 2017 14:27:21 +0000 http://perlmonks.org/index.pl?node_id=1193298 1193298 1193298 2017-06-22 10:27:21 trahulprajapati miguelnaranjo miguelnaranjo http://perlmonks.org/index.pl?node_id=1193289 user Thu, 22 Jun 2017 13:12:37 +0000 http://perlmonks.org/index.pl?node_id=1193289 1193289 1193289 2017-06-22 09:12:37 miguelnaranjo xsimandi xsimandi http://perlmonks.org/index.pl?node_id=1193283 user Thu, 22 Jun 2017 12:29:36 +0000 http://perlmonks.org/index.pl?node_id=1193283 1193283 1193283 2017-06-22 08:29:36 xsimandi leCaptain leCaptain http://perlmonks.org/index.pl?node_id=1193281 user Thu, 22 Jun 2017 12:12:52 +0000 http://perlmonks.org/index.pl?node_id=1193281 1193281 1193281 2017-06-22 08:12:52 leCaptain gng4life gng4life http://perlmonks.org/index.pl?node_id=1193278 user Thu, 22 Jun 2017 11:54:35 +0000 http://perlmonks.org/index.pl?node_id=1193278 1193278 1193278 2017-06-22 07:54:35 gng4life