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-10-21 16:52:36 rss,clean Fri Oct 21 06:52:36 2016 30 20161021065236 Fri Oct 21 06:52:36 2016 http://perlmonks.org/ Anonymous Monk Recommendations for perl modules to work on data sets ? raghuprasad241 http://perlmonks.org/index.pl?node_id=1174464 Hello monks, I am trying to find modules for some advanced data mining projects in perl. In python they have iterator module with functions like pairwise etc. that does the task for me. However ... perlquestion Fri, 21 Oct 2016 15:06:42 +0000 http://perlmonks.org/index.pl?node_id=1174464 1174464 1152686 2016-10-21 11:06:42 raghuprasad241 How to concatenate utf8 safely? gregor42 http://perlmonks.org/index.pl?node_id=1174461 I am humbled and seeking help. This concerns data containing names so getting it Right is important. It is likely that I am fundamentally missing something when it comes to safely... perlquestion Fri, 21 Oct 2016 14:22:34 +0000 http://perlmonks.org/index.pl?node_id=1174461 1174461 63250 2016-10-21 10:22:34 gregor42 FTP->SFTP directory listing gouldopfl http://perlmonks.org/index.pl?node_id=1174459 I have been using Net::FTP::Recursive. They are now changing our server to SFTP only. In the current program that I use to pull the directory listing, I'm using the rdir attribute. It pulls a listin... perlquestion Fri, 21 Oct 2016 14:10:22 +0000 http://perlmonks.org/index.pl?node_id=1174459 1174459 1081432 2016-10-21 10:10:22 gouldopfl Get latest file created or modified & matching part of file name : rahulme81 http://perlmonks.org/index.pl?node_id=1174457 Hello Monks I have a directory with a bunch of files. I'm trying to find the latest file created or modified by time in a directory and using the following pattern *regular*100... perlquestion Fri, 21 Oct 2016 13:49:46 +0000 http://perlmonks.org/index.pl?node_id=1174457 1174457 1139138 2016-10-21 09:49:46 rahulme81 Module for form validation and resubmission Dallaylaen http://perlmonks.org/index.pl?node_id=1174448 Hello, dear esteemed monks! tl;dr: I'm thinking of a module that (1) compiles a set of validation rules once and (2) for each hashref given to it later, returns another obje... perlquestion Fri, 21 Oct 2016 11:33:20 +0000 http://perlmonks.org/index.pl?node_id=1174448 1174448 826278 2016-10-21 07:33:20 Dallaylaen Automating site having iframes using Selenium 9mohit2 http://perlmonks.org/index.pl?node_id=1174446 Hi can someone please help me with some documentation for working with site having iframes using selenium in Perl. I am using Selenium::Chrome module. But I am not able to get elements inside the i... perlquestion Fri, 21 Oct 2016 11:28:01 +0000 http://perlmonks.org/index.pl?node_id=1174446 1174446 1169560 2016-10-21 07:28:01 9mohit2 write to Disk instead of RAM without using modules Anonymous Monk http://perlmonks.org/index.pl?node_id=1174440 I am trying to compare multiple files simultaneously for similar pattern search. I have multiple files with each file of size 500MB approximately. I have written a script which works well when I run w... perlquestion Fri, 21 Oct 2016 11:04:18 +0000 http://perlmonks.org/index.pl?node_id=1174440 1174440 961 2016-10-21 07:04:18 Anonymous Monk First word Anonymous Monk http://perlmonks.org/index.pl?node_id=1174439 I would like to get the first word from each row of my @AoA&#91;&#93;&#91;&#93; and push it into the array @kmers. Can anybody help me get there? This is what I've done so far. Thanks in advance everybody! ... perlquestion Fri, 21 Oct 2016 11:00:49 +0000 http://perlmonks.org/index.pl?node_id=1174439 1174439 961 2016-10-21 07:00:49 Anonymous Monk Re^2: Get latest file created or modified & matching part of file name : rinkish85 http://perlmonks.org/index.pl?node_id=1174469 Thank you very much.... note Fri, 21 Oct 2016 16:29:42 +0000 http://perlmonks.org/index.pl?node_id=1174469 1174469 1097156 2016-10-21 12:29:42 rinkish85 Re: Recommendations for perl modules to work on data sets ? raghuprasad241 http://perlmonks.org/index.pl?node_id=1174468 Thank you guys, for the response. I will probably write my own code for this. I think finding 5 consecutive increasing or decreasing values in a list should not that difficult. However, ... note Fri, 21 Oct 2016 16:22:14 +0000 http://perlmonks.org/index.pl?node_id=1174468 1174468 1152686 2016-10-21 12:22:14 raghuprasad241 Re: DBD::Sybase - problem loading shared object Anonymous Monk http://perlmonks.org/index.pl?node_id=1174467 Thanks from 2016!! Solved my problem! ... note Fri, 21 Oct 2016 16:07:56 +0000 http://perlmonks.org/index.pl?node_id=1174467 1174467 961 2016-10-21 12:07:56 Anonymous Monk Re: Recommendations for perl modules to work on data sets ? talexb http://perlmonks.org/index.pl?node_id=1174466 There may be a module that could help you here, but my preference would be to just roll up my sleeves and write to some Perl to do this. It sounds like there are two rules: Starting at s... note Fri, 21 Oct 2016 15:15:20 +0000 http://perlmonks.org/index.pl?node_id=1174466 1174466 131279 2016-10-21 11:15:20 talexb Re: Recommendations for perl modules to work on data sets ? choroba http://perlmonks.org/index.pl?node_id=1174465 I don't know what pairwise does in python, but it sounds similar to pairs in <a href="https://metacpan.org/pod/List%3A%3AUtil">List::Util</a>. See also <a href="https://metacpan.org/pod/List%3A%3AMoreUtils">List::MoreUtils</a> for pairwise and many other functions. On... note Fri, 21 Oct 2016 15:13:19 +0000 http://perlmonks.org/index.pl?node_id=1174465 1174465 832495 2016-10-21 11:13:19 choroba Re: How to concatenate utf8 safely? choroba http://perlmonks.org/index.pl?node_id=1174463 Using is_utf8 somewhere outside of <a href="https://metacpan.org/pod/Encode">Encode</a> is usually wrong. It doesn't tell you whether the string is UTF-8, it tells you how Perl internally keeps the value. Make sure you ha... note Fri, 21 Oct 2016 14:34:22 +0000 http://perlmonks.org/index.pl?node_id=1174463 1174463 832495 2016-10-21 10:34:22 choroba Re: Attempt to reload LWP/Protocol/http.pm jellisii2 http://perlmonks.org/index.pl?node_id=1174462 <a href="?node_id=920664">Re: Again with PAR::Packer troubles</a> may be a useful thing to read, despite it's seemingly unrelated title.... note Fri, 21 Oct 2016 14:27:35 +0000 http://perlmonks.org/index.pl?node_id=1174462 1174462 554517 2016-10-21 10:27:35 jellisii2 Re: FTP->SFTP directory listing choroba http://perlmonks.org/index.pl?node_id=1174460 Your question (and username) sounds similar to <a href="?node_id=1174362">How to get directory listing using Net::SFTP::Recursive</a> asked yesterday. I fear the answers won't be any different. ... note Fri, 21 Oct 2016 14:18:17 +0000 http://perlmonks.org/index.pl?node_id=1174460 1174460 832495 2016-10-21 10:18:17 choroba Re: Get latest file created or modified & matching part of file name : Eily http://perlmonks.org/index.pl?node_id=1174458 The pattern (not a regular expression though) you have given could be used with <a href="http://perldoc.perl.org/functions/glob.html">glob</a>. my @files = map { <a href="?node=%20stat%20%24_%2C%20%24_%20"> stat $_, $_ </a> } glob "$DIR/*regular**failed*";... note Fri, 21 Oct 2016 14:09:43 +0000 http://perlmonks.org/index.pl?node_id=1174458 1174458 1039428 2016-10-21 10:09:43 Eily Re^9: sfv checker sting crc32 reptizarx3 http://perlmonks.org/index.pl?node_id=1174456 Ok so i change it to "my $home = "/Test01/TEST";" Where "Test01" is the name of the user, and "test" is the folder where the files will be uploaded, and save the .... note Fri, 21 Oct 2016 13:37:44 +0000 http://perlmonks.org/index.pl?node_id=1174456 1174456 1174387 2016-10-21 09:37:44 reptizarx3 Re^2: Attempt to reload LWP/Protocol/http.pm UMonk http://perlmonks.org/index.pl?node_id=1174455 Hi the team member who implemented was trying to help me , but even that person was not sure what is happening.... note Fri, 21 Oct 2016 13:36:58 +0000 http://perlmonks.org/index.pl?node_id=1174455 1174455 1174393 2016-10-21 09:36:58 UMonk Re: Module for form validation and resubmission Your Mother http://perlmonks.org/index.pl?node_id=1174454 There is also <a href="https://metacpan.org/pod/HTML%3A%3AFormFu">HTML::FormFu</a> with which I have had a love/hate relationship. It's big, complicated, and slow but reminds me of the chestnut about democracy: it's the worst form of governm... note Fri, 21 Oct 2016 13:20:33 +0000 http://perlmonks.org/index.pl?node_id=1174454 1174454 248054 2016-10-21 09:20:33 Your Mother Re^3: First word hippo http://perlmonks.org/index.pl?node_id=1174453 Since you haven't provided an SSCCE it is rather hard to say with certainty but the suspicion has to be that your @AoA is incorrectly formed and may not even ... note Fri, 21 Oct 2016 12:40:15 +0000 http://perlmonks.org/index.pl?node_id=1174453 1174453 885521 2016-10-21 08:40:15 hippo Re^3: First word GotToBTru http://perlmonks.org/index.pl?node_id=1174452 Try: print "@kmers\n"; But God demonstrates His own love to... note Fri, 21 Oct 2016 12:39:55 +0000 http://perlmonks.org/index.pl?node_id=1174452 1174452 844862 2016-10-21 08:39:55 GotToBTru Re^8: sfv checker sting crc32 soonix http://perlmonks.org/index.pl?node_id=1174451 it is supposed to be started like this checker path/to/download/folder However, it will prepend "/usr/files" to the folder name. You will have to change this within the script, ... note Fri, 21 Oct 2016 12:27:30 +0000 http://perlmonks.org/index.pl?node_id=1174451 1174451 1015412 2016-10-21 08:27:30 soonix Re^2: First word Anonymous Monk http://perlmonks.org/index.pl?node_id=1174450 Thanks for your quick reply. I modified the script as follows: my(@kmers); for my$x (@AoA){ for my$y (@$x){ push @kmers, $y =~ /^(\w+)/; print @kmers."\n"; } } ... note Fri, 21 Oct 2016 12:02:03 +0000 http://perlmonks.org/index.pl?node_id=1174450 1174450 961 2016-10-21 08:02:03 Anonymous Monk Re: Automating site having iframes using Selenium Corion http://perlmonks.org/index.pl?node_id=1174449 In my experience, you cannot switch back to an upper frame using Selenium. But I never deeply used Selenium except for browser automation, which Selenium is not intended for.... note Fri, 21 Oct 2016 11:34:16 +0000 http://perlmonks.org/index.pl?node_id=1174449 1174449 5348 2016-10-21 07:34:16 Corion Re: Automating site having iframes using Selenium marto http://perlmonks.org/index.pl?node_id=1174447 I don't use this, out of curiosity and waiting for some builds to pass testing I looked at the documentation. Look at the &#91;https://metacpan.org/pod/Selenium::Remote::Driver#switch_to_frame|switch_t... note Fri, 21 Oct 2016 11:32:19 +0000 http://perlmonks.org/index.pl?node_id=1174447 1174447 324763 2016-10-21 07:32:19 marto Re^7: sfv checker sting crc32 reptizarx3 http://perlmonks.org/index.pl?node_id=1174445 The scripts is intend to run on wingftp server for incoming/uploaded dirs containg sfv, but its too hard for me to installed and run it. It will check dirs and creating ... note Fri, 21 Oct 2016 11:25:49 +0000 http://perlmonks.org/index.pl?node_id=1174445 1174445 1174387 2016-10-21 07:25:49 reptizarx3 Re: First word hippo http://perlmonks.org/index.pl?node_id=1174444 Here is an SSCCE for you repurposing your own regex: #!/usr/bin/env perl use strict; use warnings; my @AoA = ( &#91;'first word', 'greek latin'... note Fri, 21 Oct 2016 11:17:01 +0000 http://perlmonks.org/index.pl?node_id=1174444 1174444 885521 2016-10-21 07:17:01 hippo Re: First word Laurent_R http://perlmonks.org/index.pl?node_id=1174443 One possible way to do it (demonstrated under the Perl debugger): DB @aoa = (<a href="?node=qw%20%2F%201%202%203%204%2F">qw / 1 2 3 4/</a>, <a href="?node=qw%2F5%206%207%2F">qw/5 6 7/</a>, <a href="?node=qw%2F8%209%2F">qw/8 9/</a>); DB x \@aoa 0 ARRAY(0x302ef588) 0 ARRAY(0x3002a078) ... note Fri, 21 Oct 2016 11:13:16 +0000 http://perlmonks.org/index.pl?node_id=1174443 1174443 992570 2016-10-21 07:13:16 Laurent_R Re: write to Disk instead of RAM without using modules marto http://perlmonks.org/index.pl?node_id=1174442 It's probably worth reading <a href="?node_id=693828">Yes, even you can use CPAN</a>.... note Fri, 21 Oct 2016 11:12:55 +0000 http://perlmonks.org/index.pl?node_id=1174442 1174442 324763 2016-10-21 07:12:55 marto Re: write to Disk instead of RAM without using modules Corion http://perlmonks.org/index.pl?node_id=1174441 Yes, see <a href="http://perldoc.perl.org/functions/tie.html">tie</a> and easily <a href="http://search.cpan.org/perldoc?Tie%3A%3AFile">Tie::File</a> and <a href="http://search.cpan.org/perldoc?DB_File">DB_File</a>. If you don't want to use a module, just take the code that these modules contain and use that code.... note Fri, 21 Oct 2016 11:07:41 +0000 http://perlmonks.org/index.pl?node_id=1174441 1174441 5348 2016-10-21 07:07:41 Corion