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-05-26 19:11:13 rss,clean Thu May 26 09:11:13 2016 30 20160526091113 Thu May 26 09:11:13 2016 http://perlmonks.org/ Anonymous Monk MIME::Lite ssleay error sweetblood http://perlmonks.org/index.pl?node_id=1164212 I'm having a strange problem using MIME::Lite, quite some time ago I wrote or mostly stole a sendmail function. I've been using this in many different perl scripts for at least 15 years probably longe... perlquestion Thu, 26 May 2016 18:33:50 +0000 http://perlmonks.org/index.pl?node_id=1164212 1164212 281009 2016-05-26 14:33:50 sweetblood Selective lines updation from one file (file1) to another (file2) without changing the rest of the sections to a new fine($dir/file2) anirbanphys http://perlmonks.org/index.pl?node_id=1164210 Hello All, I am trying to write a perl code which will do the following task. The code will read two .lib file, ref_lib.lib and org_lib.lib. After doing the operations it w... perlquestion Thu, 26 May 2016 18:20:30 +0000 http://perlmonks.org/index.pl?node_id=1164210 1164210 1147999 2016-05-26 14:20:30 anirbanphys Pass an object, a variable in an Array Chaoui05 http://perlmonks.org/index.pl?node_id=1164197 Hi everybody, I have a beginner question : How to add an object or a variable in an Array with Perl. I'am using Selenium::Screenshot package I have my Object here .. my $white = Sele... perlquestion Thu, 26 May 2016 14:21:32 +0000 http://perlmonks.org/index.pl?node_id=1164197 1164197 1160752 2016-05-26 10:21:32 Chaoui05 Parse html file with java script perlmad http://perlmonks.org/index.pl?node_id=1164193 Hi Monks I am using www::mechanize module to parse the webpage and get the html content by HTML::TreeBuilder here is my code $mech -> get($home_url); pr... perlquestion Thu, 26 May 2016 14:00:55 +0000 http://perlmonks.org/index.pl?node_id=1164193 1164193 1162685 2016-05-26 10:00:55 perlmad Perl plugin for IntelliJ IDEA v2.0 has been released hurricup http://perlmonks.org/index.pl?node_id=1164209 Next version of Camelcade - Perl5 plugin for IntelliJ IDEA has been released. This release includes Perl Debugger, the last feature I wanted to implement in Perl IDE of my dreams. ... perlnews Thu, 26 May 2016 18:00:21 +0000 http://perlmonks.org/index.pl?node_id=1164209 1164209 1094602 2016-05-26 14:00:21 hurricup Re: MIME::Lite ssleay error Mr. Muskrat http://perlmonks.org/index.pl?node_id=1164218 Have you tried updating or reinstalling Net::SSLeay? Update: <a href="http://metacpan.org/search?q=MIME%3A%3ALite">MIME::Lite</a> uses <a href="http://metacpan.org/search?q=Net%3A%3ASMTP">Net::SMTP</a> which uses <a href="http://metacpan.org/search?q=IO%3A%3ASocket%3A%3ASSL">IO::Socket::SSL</a> which uses <a href="http://metacpan.org/search?q=Net%3A%3ASSLeay">Net::SSLeay</a>.... note Thu, 26 May 2016 18:56:40 +0000 http://perlmonks.org/index.pl?node_id=1164218 1164218 155876 2016-05-26 14:56:40 Mr. Muskrat Re^4: Bicubic Interpolation Math Function anirbanphys http://perlmonks.org/index.pl?node_id=1164217 Sure, thank you so much for your valuable feedback :) ... note Thu, 26 May 2016 18:44:56 +0000 http://perlmonks.org/index.pl?node_id=1164217 1164217 1147999 2016-05-26 14:44:56 anirbanphys Re^12: Finding file level lexical variables johndeighan http://perlmonks.org/index.pl?node_id=1164216 So, I don't want to be thick here, but here's my confusion. Take my baby example of a test.pl script and a TestModule.pm Perl module. What I'm interested in is in test.pl, finding the variables, de... note Thu, 26 May 2016 18:44:24 +0000 http://perlmonks.org/index.pl?node_id=1164216 1164216 1157453 2016-05-26 14:44:24 johndeighan Re^2: Selective lines updation from one file (file1) to another (file2) without changing the rest of the sections to a new fine($dir/file2) anirbanphys http://perlmonks.org/index.pl?node_id=1164215 Yes, this is a sample synopsys liberty file. And I need to update the attributes from ref_lib to original_lib in another directory. ... note Thu, 26 May 2016 18:43:12 +0000 http://perlmonks.org/index.pl?node_id=1164215 1164215 1147999 2016-05-26 14:43:12 anirbanphys Re^3: Bicubic Interpolation Math Function BrowserUk http://perlmonks.org/index.pl?node_id=1164214 Now I have to work more to get the more accurate result. Take note of &#91;http://www.paulinternet.nl/?page=bicubic|the section entitled:"The first and the last inter... note Thu, 26 May 2016 18:41:44 +0000 http://perlmonks.org/index.pl?node_id=1164214 1164214 171588 2016-05-26 14:41:44 BrowserUk Re: Selective lines updation from one file (file1) to another (file2) without changing the rest of the sections to a new fine($dir/file2) toolic http://perlmonks.org/index.pl?node_id=1164213 Is that a <a href="http://search.cpan.org/search?mode=module&amp;query=liberty">liberty file</a>?... note Thu, 26 May 2016 18:38:56 +0000 http://perlmonks.org/index.pl?node_id=1164213 1164213 622051 2016-05-26 14:38:56 toolic Re: Net::RabbitMQ can't make, help me~ thanks all! ikegami http://perlmonks.org/index.pl?node_id=1164211 If this is for a program you're just starting to write, consider using Net::AMQP::RabbitMQ instead of Net::RabbitMQ... note Thu, 26 May 2016 18:23:06 +0000 http://perlmonks.org/index.pl?node_id=1164211 1164211 381608 2016-05-26 14:23:06 ikegami Re^2: Bicubic Interpolation Math Function anirbanphys http://perlmonks.org/index.pl?node_id=1164208 Yes, it should work the way you had written the code. Very sorry for the delayed response. I was checking with the real/actual numbers and from the actual calculation the code result deviating 5%... note Thu, 26 May 2016 17:56:23 +0000 http://perlmonks.org/index.pl?node_id=1164208 1164208 1147999 2016-05-26 13:56:23 anirbanphys Re^3: i2c attached LCD Character Display for a Raspberry Pi jmlynesjr http://perlmonks.org/index.pl?node_id=1164207 <a href="?node=anita2R">anita2R</a> I went back and looked at my chipKIT code. Turns out my Sparkfun LCD is a SPI interface. My SF 4 digit LED display uses I2C. In either case neither required any bit twiddling. T... note Thu, 26 May 2016 16:54:08 +0000 http://perlmonks.org/index.pl?node_id=1164207 1164207 982107 2016-05-26 12:54:08 jmlynesjr Re: hash question AnomalousMonk http://perlmonks.org/index.pl?node_id=1164206 As an example of what <a href="?node=BrowserUk">BrowserUk</a> and <a href="?node=GrandFather">GrandFather</a> are talking about, print the addresses of the hash references you're passing around: c:\@Work\Perl\monks>perl -wMstrict -MData::Du... note Thu, 26 May 2016 15:48:53 +0000 http://perlmonks.org/index.pl?node_id=1164206 1164206 634253 2016-05-26 11:48:53 AnomalousMonk Re^2: Pass an object, a variable in an Array Chaoui05 http://perlmonks.org/index.pl?node_id=1164205 Thanks a lot ! Your approach is pretty good ! Lost in translation ... note Thu, 26 May 2016 15:42:40 +0000 http://perlmonks.org/index.pl?node_id=1164205 1164205 1160752 2016-05-26 11:42:40 Chaoui05 Re^11: Finding file level lexical variables LanX http://perlmonks.org/index.pl?node_id=1164204 &gt; All suggestions gratefully accepted! the only possibility I see for a generic get_mem() is to define it in another module and use it use peek_my(1) ins... note Thu, 26 May 2016 15:23:37 +0000 http://perlmonks.org/index.pl?node_id=1164204 1164204 708738 2016-05-26 11:23:37 LanX Re^2: DBD::Sybase and UTF-8 Anonymous Monk http://perlmonks.org/index.pl?node_id=1164203 Any update? I am also seeing this exact same error in MSSQL... note Thu, 26 May 2016 15:11:18 +0000 http://perlmonks.org/index.pl?node_id=1164203 1164203 961 2016-05-26 11:11:18 Anonymous Monk Re^3: Recover a variable from a loop AnomalousMonk http://perlmonks.org/index.pl?node_id=1164202 unless ($white{browser_name => $browser&#91;0&#93;}->compare($blue{browser_name => $browser<a href="?node=1">1</a>})) { $diff_file = $white->difference($blue); print '#The im... note Thu, 26 May 2016 15:07:19 +0000 http://perlmonks.org/index.pl?node_id=1164202 1164202 634253 2016-05-26 11:07:19 AnomalousMonk Re^10: Finding file level lexical variables johndeighan http://perlmonks.org/index.pl?node_id=1164201 Since I want to develop a script to find all of these variables automatically, I'll need PadWalker just to find them. However, once I've gotten their names, and given that the reference to them see... note Thu, 26 May 2016 15:02:45 +0000 http://perlmonks.org/index.pl?node_id=1164201 1164201 1157453 2016-05-26 11:02:45 johndeighan Re: Pass an object, a variable in an Array stevieb http://perlmonks.org/index.pl?node_id=1164200 $screenshots as depicted in $screenshots{$browser} is not an array, it's a hash. So you want to create a hash that contains all of the objects; is that correct? Here's a ver... note Thu, 26 May 2016 14:50:10 +0000 http://perlmonks.org/index.pl?node_id=1164200 1164200 789891 2016-05-26 10:50:10 stevieb Re^4: convert columns into matrix and get population count? fasoli http://perlmonks.org/index.pl?node_id=1164199 I know, I know. Whenever I just post a question like "please help me" I feel really bad but in most cases what I've tried is either scribbles on paper or just me racking my brains about *how* to start... note Thu, 26 May 2016 14:31:56 +0000 http://perlmonks.org/index.pl?node_id=1164199 1164199 1124290 2016-05-26 10:31:56 fasoli Re^2: i2c attached LCD Character Display for a Raspberry Pi anita2R http://perlmonks.org/index.pl?node_id=1164198 I wasn't aware that the SparkFun module provided more than just serial to parallel conversion. The SainSmart backpack is a simple (and cheap) device. I just looked, their 2 x 16 LCD with ... note Thu, 26 May 2016 14:31:03 +0000 http://perlmonks.org/index.pl?node_id=1164198 1164198 1064720 2016-05-26 10:31:03 anita2R Re^9: Finding file level lexical variables LanX http://perlmonks.org/index.pl?node_id=1164196 &gt; . Do you know the difference between going up 1 level in the call stack as opposed to going up one level lexically? Yes I know the difference and I was very surprised that you don't ... note Thu, 26 May 2016 14:13:51 +0000 http://perlmonks.org/index.pl?node_id=1164196 1164196 708738 2016-05-26 10:13:51 LanX Re: Parse html file with javascript hippo http://perlmonks.org/index.pl?node_id=1164195 Hot to work javascript with perl while webpage parsing ?, 3) Is this possible to disable java script ?, Please help me to find how to proceed with it Start w... note Thu, 26 May 2016 14:07:22 +0000 http://perlmonks.org/index.pl?node_id=1164195 1164195 885521 2016-05-26 10:07:22 hippo Re^8: Finding file level lexical variables johndeighan http://perlmonks.org/index.pl?node_id=1164194 Yes, I know what closures are. Do you know the difference between going up 1 level in the call stack as opposed to going up one level lexically? peek_my(1) will go up one level in the call stack which... note Thu, 26 May 2016 14:06:07 +0000 http://perlmonks.org/index.pl?node_id=1164194 1164194 1157453 2016-05-26 10:06:07 johndeighan Re^3: Scope of $/ NetWallah http://perlmonks.org/index.pl?node_id=1164192 Applause, for a truly elegant solution ! I wish I had thought of that. ... note Thu, 26 May 2016 13:48:42 +0000 http://perlmonks.org/index.pl?node_id=1164192 1164192 159887 2016-05-26 09:48:42 NetWallah Re^2: Scope of $/ BillKSmith http://perlmonks.org/index.pl?node_id=1164191 A truly minimal scope solves the problem. use strict; #use reader; $/= "\n\n\n"; while(do{local $/="\n\n\n"; $_=}){ my ($filename)=/^(\S+)/; my $text=reader::firstline($filename);... note Thu, 26 May 2016 13:29:49 +0000 http://perlmonks.org/index.pl?node_id=1164191 1164191 957973 2016-05-26 09:29:49 BillKSmith Re^7: Finding file level lexical variables LanX http://perlmonks.org/index.pl?node_id=1164190 They are not closed over in the sub, ie never used there. Did you try peek_my(1) like I suggested 3 times already ? Maybe you want to have a look into <a href="http://perldoc.perl.org/perlguts.html">perlguts</a>... note Thu, 26 May 2016 13:16:08 +0000 http://perlmonks.org/index.pl?node_id=1164190 1164190 708738 2016-05-26 09:16:08 LanX