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-30 07:27:39 rss,clean Fri Aug 29 21:27:39 2014 30 20140829212739 Fri Aug 29 21:27:39 2014 http://perlmonks.org/ Anonymous Monk intersection of scalar with 1D array and 2D array Matlab=>Perl f77coder http://perlmonks.org/index.pl?node_id=1099055 Hello, I'm converting some Matlab code into perl. Here's the Matlab code. while ~feof(fileIDS); m1=fgetl(fileIDS); <a href="?node=a%2Cb">a,b</a>=intersect(dataD{1},{deblank(m1)}); if (~isempty(... perlquestion Sat, 30 Aug 2014 02:58:43 +0000 http://perlmonks.org/index.pl?node_id=1099055 1099055 1095992 2014-08-29 22:58:43 f77coder Re^4: Including files Anonymous Monk http://perlmonks.org/index.pl?node_id=1099063 Yeah, well, I can't speak for the person you're sighing about but I did read the article...I don't get it. Juerd wrote the article in 2004, and if you don't get it, then you didn't rea... note Sat, 30 Aug 2014 07:10:49 +0000 http://perlmonks.org/index.pl?node_id=1099063 1099063 961 2014-08-30 03:10:49 Anonymous Monk Re: Search a SQL Table and Delete Records Katanya http://perlmonks.org/index.pl?node_id=1099062 Will this work for retrieving the two columns I want? # Search the needed table and pull out needed columns my $search = "SELECT comment_ID,comment_content FROM wp_comments" my $sql = ... note Sat, 30 Aug 2014 06:58:21 +0000 http://perlmonks.org/index.pl?node_id=1099062 1099062 1098927 2014-08-30 02:58:21 Katanya Re^2: intersection of scalar with 1D array and 2D array Matlab=>Perl f77coder http://perlmonks.org/index.pl?node_id=1099059 Thanks for suggestion. I tried List::Compare and most of the flavors but they all bomb because I'm comparing a scalar to an array. All want 1D arrays to compare. I'll have a look at the ot... note Sat, 30 Aug 2014 04:28:43 +0000 http://perlmonks.org/index.pl?node_id=1099059 1099059 1095992 2014-08-30 00:28:43 f77coder Re: intersection of scalar with 1D array and 2D array Matlab=>Perl NetWallah http://perlmonks.org/index.pl?node_id=1099058 A few modules that are likely to do the job well: <a href="http://search.cpan.org/search?mode=module&amp;query=List%3A%3ACompare">List::Compare</a> <a href="http://search.cpan.org/search?mode=module&amp;query=Quantum%3A%3ASuperpositions">Quantum::Superpositions</a> (if you like eigen states) <a href="http://search.cpan.org/search?mode=module&amp;query=Set%3A%3AArray">Set::Array</a> ... note Sat, 30 Aug 2014 04:07:11 +0000 http://perlmonks.org/index.pl?node_id=1099058 1099058 159887 2014-08-30 00:07:11 NetWallah Re^4: Including files Athanasius http://perlmonks.org/index.pl?node_id=1099057 Sorry, I think you&rsquo;re reading <a href="?node=Juerd">Juerd</a>&rsquo;s tutorial back-to-front. So now tell me again why I'm not supposed to just use require to read in a library of functions?... note Sat, 30 Aug 2014 04:04:33 +0000 http://perlmonks.org/index.pl?node_id=1099057 1099057 968231 2014-08-30 00:04:33 Athanasius Re: How do they combine two perl scripts together? Anonymous Monk http://perlmonks.org/index.pl?node_id=1099056 subroutines <a href="http://perldoc.perl.org/perlintro.html">perlintro</a>#<a href="http://perldoc.perl.org/perlintro.html#Writing-subroutines">Writing subroutines</a> and <a href="http://learn.perl.org/books/beginning-perl/">http://learn.perl.org/books/beginning-perl/</a> &#91;href://http://docs.google.com/viewer?url=http%3A%2F%2Fblob.perl.org%2... note Sat, 30 Aug 2014 04:00:19 +0000 http://perlmonks.org/index.pl?node_id=1099056 1099056 961 2014-08-30 00:00:19 Anonymous Monk BitDreamer BitDreamer http://perlmonks.org/index.pl?node_id=1099060 user Sat, 30 Aug 2014 04:32:19 +0000 http://perlmonks.org/index.pl?node_id=1099060 1099060 1099060 2014-08-30 00:32:19 BitDreamer