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-09-02 12:20:30 rss,clean Tue Sep 2 02:20:30 2014 30 20140902022030 Tue Sep 2 02:20:30 2014 http://perlmonks.org/ Anonymous Monk perlmonks site rsFalse http://perlmonks.org/index.pl?node_id=1099232 I dislike: small texts at this site, white background of site (it's uncomfortable for my eyes), inability to reply to forum post. I like: answers on topics, and other... // guest-newbie... monkdiscuss Tue, 02 Sep 2014 09:37:28 +0000 http://perlmonks.org/index.pl?node_id=1099232 1099232 1094311 2014-09-02 05:37:28 rsFalse Problem while installing module from CPAN on windows. kiranp http://perlmonks.org/index.pl?node_id=1099258 Hi Monks, I have released my module *Speedometer* in CPAN and soon after i tried to install it on windows. but getting following error. what could be the reason. thanks. --> Working o... perlquestion Tue, 02 Sep 2014 12:06:50 +0000 http://perlmonks.org/index.pl?node_id=1099258 1099258 1099255 2014-09-02 08:06:50 kiranp Point me in the right direction with OO inheritance and static variables Amblikai http://perlmonks.org/index.pl?node_id=1099240 Hi Monks, still getting to grips with OO Perl. I know there are modules out there like Moose et al, but i' writing classic perl Objects as a learning experience. I'm not sure where to b... perlquestion Tue, 02 Sep 2014 09:54:51 +0000 http://perlmonks.org/index.pl?node_id=1099240 1099240 1010915 2014-09-02 05:54:51 Amblikai Re: Problem while installing module from CPAN on windows. marto http://perlmonks.org/index.pl?node_id=1099260 "FAIL ! Installing Speedometer failed. See \.cpanm\build.log for details." Unless you tell us what went wrong, it's difficult to help. Make it easy for people to help you. &#91;id://1740... note Tue, 02 Sep 2014 12:15:44 +0000 http://perlmonks.org/index.pl?node_id=1099260 1099260 324763 2014-09-02 08:15:44 marto Re^14: search and replace strings in different files in a directory PitifulProgrammer http://perlmonks.org/index.pl?node_id=1099259 Dear Monks Sorry for pestering you once again with my noob questions. I changed the script according to your recommendations. So far no more BOM errors and everything seems to be working ... note Tue, 02 Sep 2014 12:12:48 +0000 http://perlmonks.org/index.pl?node_id=1099259 1099259 1096570 2014-09-02 08:12:48 PitifulProgrammer Re^3: Point me in the right direction with OO inheritance and static variables tobyink http://perlmonks.org/index.pl?node_id=1099257 I've written them in quite a terse fashion. This is because when you're doing OO without any OO frameworks, you end up having to write a lot of these sort of little accessor subs, and making them a... note Tue, 02 Sep 2014 12:03:02 +0000 http://perlmonks.org/index.pl?node_id=1099257 1099257 757127 2014-09-02 08:03:02 tobyink Re^2: Point me in the right direction with OO inheritance and static variables Amblikai http://perlmonks.org/index.pl?node_id=1099254 Thanks, the way you are doing defaults is a bit simpler and might be sufficient for my program. I'm learning this stuff though so anything is good to see! Cheers! ... note Tue, 02 Sep 2014 11:44:12 +0000 http://perlmonks.org/index.pl?node_id=1099254 1099254 1010915 2014-09-02 07:44:12 Amblikai Re^2: Point me in the right direction with OO inheritance and static variables Amblikai http://perlmonks.org/index.pl?node_id=1099253 Wow! Thanks! This is pretty much exactly what i'm thinking of with some minor modification (i wish my program was about Unicorns called Twilight Sparkle!! I'm having trouble following ... note Tue, 02 Sep 2014 11:41:25 +0000 http://perlmonks.org/index.pl?node_id=1099253 1099253 1010915 2014-09-02 07:41:25 Amblikai Re^2: Point me in the right direction with OO inheritance and static variables choroba http://perlmonks.org/index.pl?node_id=1099252 and these things can't have user-defined attributes Unless inside out. ... note Tue, 02 Sep 2014 11:36:02 +0000 http://perlmonks.org/index.pl?node_id=1099252 1099252 832495 2014-09-02 07:36:02 choroba Re^2: poll ideas quest 2014 Arunbear http://perlmonks.org/index.pl?node_id=1099251 Bill Nye / Neil deGrasse Tyson / MacGyver ? ... note Tue, 02 Sep 2014 11:18:28 +0000 http://perlmonks.org/index.pl?node_id=1099251 1099251 298378 2014-09-02 07:18:28 Arunbear Re: Point me in the right direction with OO inheritance and static variables 2teez http://perlmonks.org/index.pl?node_id=1099250 hi <a href="?node=Amblikai">Amblikai</a>, If what <a href="?node=choroba">choroba</a> and <a href="?node=tobyink">tobyink</a> gave are too strong a drink to take all at once, you can check this soft milk use warnings; use strict; package Animal; ... note Tue, 02 Sep 2014 11:15:41 +0000 http://perlmonks.org/index.pl?node_id=1099250 1099250 918402 2014-09-02 07:15:41 2teez Re^2: Point me in the right direction with OO inheritance and static variables AppleFritter http://perlmonks.org/index.pl?node_id=1099249 # ... my $ts = Unicorn->new( name => "Twilight Sparkle" ); $ts->dump; # Note that this dies because of the typo! my $pp = Unicorn->new( naem => "Pinkie Pie" ); ... note Tue, 02 Sep 2014 10:54:33 +0000 http://perlmonks.org/index.pl?node_id=1099249 1099249 1084031 2014-09-02 06:54:33 AppleFritter Re: Point me in the right direction with OO inheritance and static variables Anonymous Monk http://perlmonks.org/index.pl?node_id=1099248 One important thing to realize is that in Perl, only methods are inherited. In other languages it's different, but Perl has no notion of 'object attributes', strictly speaking. Any reference can be a... note Tue, 02 Sep 2014 10:52:04 +0000 http://perlmonks.org/index.pl?node_id=1099248 1099248 961 2014-09-02 06:52:04 Anonymous Monk Re: Commodore disk image processor thingy AppleFritter http://perlmonks.org/index.pl?node_id=1099247 By all means, go ahead and upload this! It sounds like a great module to have on CPAN. I don't see any upside to posting it elsewhere instead: CPAN is all about discoverability and ease of instal... note Tue, 02 Sep 2014 10:51:14 +0000 http://perlmonks.org/index.pl?node_id=1099247 1099247 1084031 2014-09-02 06:51:14 AppleFritter Re^3: Point me in the right direction with OO inheritance and static variables tobyink http://perlmonks.org/index.pl?node_id=1099246 The child class has a package variable called @ISA which tells it the parent class. This is an array because multiple inheritance is supported. package Child { require Parent... note Tue, 02 Sep 2014 10:23:33 +0000 http://perlmonks.org/index.pl?node_id=1099246 1099246 757127 2014-09-02 06:23:33 tobyink Re^3: Point me in the right direction with OO inheritance and static variables choroba http://perlmonks.org/index.pl?node_id=1099245 In the child class, you specified use parent 'Parent::Class'; right? See <a href="http://perldoc.perl.org/parent.html">parent</a>. ... note Tue, 02 Sep 2014 10:21:33 +0000 http://perlmonks.org/index.pl?node_id=1099245 1099245 832495 2014-09-02 06:21:33 choroba Re: Point me in the right direction with OO inheritance and static variables tobyink http://perlmonks.org/index.pl?node_id=1099244 Generally speaking your best bet is to use something like Moose's concept of defaults/builders. Here's an example of how you can implement something very similar using only core modules: ... note Tue, 02 Sep 2014 10:19:08 +0000 http://perlmonks.org/index.pl?node_id=1099244 1099244 757127 2014-09-02 06:19:08 tobyink Re^2: Point me in the right direction with OO inheritance and static variables Amblikai http://perlmonks.org/index.pl?node_id=1099243 Thanks! How does the child object "know" which class is the parent? (I hope my terminology is correct) In other words, when i'm creating an object in the class which is inheriting the a... note Tue, 02 Sep 2014 10:11:11 +0000 http://perlmonks.org/index.pl?node_id=1099243 1099243 1010915 2014-09-02 06:11:11 Amblikai Re: Point me in the right direction with OO inheritance and static variables choroba http://perlmonks.org/index.pl?node_id=1099242 In the plain OO approach, just specify the default attributes in the constructor: sub new { my $class = shift; my %params = ( name => 'John', surname => 'Doe',... note Tue, 02 Sep 2014 10:01:13 +0000 http://perlmonks.org/index.pl?node_id=1099242 1099242 832495 2014-09-02 06:01:13 choroba Re: Commodore disk image processor thingy DrHyde http://perlmonks.org/index.pl?node_id=1099241 We've already got 6502 and Z80 emulators on the CPAN, so uploading stuff for dealing with obsolete computers won't exactly be new. And rather than asking "why should I upload this to the CPAN", rat... note Tue, 02 Sep 2014 09:58:06 +0000 http://perlmonks.org/index.pl?node_id=1099241 1099241 84630 2014-09-02 05:58:06 DrHyde Re^3: Reading msg file 2teez http://perlmonks.org/index.pl?node_id=1099237 ..The module Email::Outlook::Message can be used if I am trying to read mail in the outlook. But the mails will be saved in a folder.. <a href="?node=Email%3A%3AOutlook%3A%3AMessage">Email::Outlook::Message</a>, also parse mail when ... note Tue, 02 Sep 2014 09:44:20 +0000 http://perlmonks.org/index.pl?node_id=1099237 1099237 918402 2014-09-02 05:44:20 2teez Re: perlmonks site Anonymous Monk http://perlmonks.org/index.pl?node_id=1099236 <a href="?node_id=1053829">Re: Perlmonks Text Font Size Of 1?! (not!)</a> and <a href="?node_id=1053831">Re: Perlmonks Text Font Size Of 1?!</a>... note Tue, 02 Sep 2014 09:42:31 +0000 http://perlmonks.org/index.pl?node_id=1099236 1099236 961 2014-09-02 05:42:31 Anonymous Monk Re: perlmonks site marto http://perlmonks.org/index.pl?node_id=1099235 The look and feel us easily customisable, there are even pre build themes to choose from. <a href="?node=Tutorials">Tutorials</a>-><a href="?node_id=519263">Understanding and Using PerlMonks</a>. "inability to reply to forum post" People can reply to p... note Tue, 02 Sep 2014 09:42:13 +0000 http://perlmonks.org/index.pl?node_id=1099235 1099235 324763 2014-09-02 05:42:13 marto Re: perlmonks site choroba http://perlmonks.org/index.pl?node_id=1099234 You can configure how the site looks when logged in. You can change the styles for various parts of the contents - which means you can use a bigger font where needed. You can pick up a pre-defined the... note Tue, 02 Sep 2014 09:41:49 +0000 http://perlmonks.org/index.pl?node_id=1099234 1099234 832495 2014-09-02 05:41:49 choroba Re: perlmonks site Corion http://perlmonks.org/index.pl?node_id=1099233 Have you looked through the themes available via <a href="?node=Display%20Settings">Display Settings</a>? Also, you can add custom CSS to change the site appearance even more.... note Tue, 02 Sep 2014 09:40:11 +0000 http://perlmonks.org/index.pl?node_id=1099233 1099233 5348 2014-09-02 05:40:11 Corion Re^13: search and replace strings in different files in a directory PitifulProgrammer http://perlmonks.org/index.pl?node_id=1099231 Dear Anonymous Monk Thank you very much for your explanation and your encouraging words. You are right, creating code for a particular task is different than reading the book(s) and going... note Tue, 02 Sep 2014 09:33:31 +0000 http://perlmonks.org/index.pl?node_id=1099231 1099231 1096570 2014-09-02 05:33:31 PitifulProgrammer Re^2: dereference references in an array Anonymous Monk http://perlmonks.org/index.pl?node_id=1099230 Just a note from <a href="http://perldoc.perl.org/perlref.html#Using-References">perlref</a> because people make this mistake: ... $$arrayref&#91;0&#93; = "January"; $$hashref{"KEY"} = "VALUE"; It's impor... note Tue, 02 Sep 2014 08:37:27 +0000 http://perlmonks.org/index.pl?node_id=1099230 1099230 961 2014-09-02 04:37:27 Anonymous Monk Re^3: LED blinking Morse code from Raspberry Pi zentara http://perlmonks.org/index.pl?node_id=1099229 I'm excitedYeah, me too. I guess now the next step would be to get some opto-isolation relays, are be able to send messages out via the LEDS. Then, see if and ports give a varying output, sa... note Tue, 02 Sep 2014 08:09:47 +0000 http://perlmonks.org/index.pl?node_id=1099229 1099229 131741 2014-09-02 04:09:47 zentara Re: Improving the Nested For Loop moritz http://perlmonks.org/index.pl?node_id=1099228 <a href="http://search.cpan.org/perldoc?PDL%3A%3AStats%3A%3ABasic">PDL::Stats::Basic</a> can calculate correlations for you. And it probably does it faster than you do, so give it a try! ... note Tue, 02 Sep 2014 07:33:30 +0000 http://perlmonks.org/index.pl?node_id=1099228 1099228 616540 2014-09-02 03:33:30 moritz Re: Improving the Nested For Loop hdb http://perlmonks.org/index.pl?node_id=1099225 In addition what the fellow monks advised above already, you do calculate the mean and the standard deviation of each category many times. You can save some time by doing it only once and store ... note Tue, 02 Sep 2014 06:52:11 +0000 http://perlmonks.org/index.pl?node_id=1099225 1099225 1021810 2014-09-02 02:52:11 hdb Re^2: Sort CSV file within Excel based on specific column Anonymous Monk http://perlmonks.org/index.pl?node_id=1099224 I was looking for this, and is working exactly what i need thank you so much ... note Tue, 02 Sep 2014 06:52:10 +0000 http://perlmonks.org/index.pl?node_id=1099224 1099224 961 2014-09-02 02:52:10 Anonymous Monk Re: Improving the Nested For Loop CountZero http://perlmonks.org/index.pl?node_id=1099223 You are calling the correlation sub 50_000 times 50_000 divided by 2 (I think): 11_250_000_000 calls in total. That is quiet a lot so any change to your correlation sub will go a long way.I ... note Tue, 02 Sep 2014 06:37:33 +0000 http://perlmonks.org/index.pl?node_id=1099223 1099223 198160 2014-09-02 02:37:33 CountZero kiranp kiranp http://perlmonks.org/index.pl?node_id=1099255 user Tue, 02 Sep 2014 12:00:10 +0000 http://perlmonks.org/index.pl?node_id=1099255 1099255 1099255 2014-09-02 08:00:10 kiranp annabeleva annabeleva http://perlmonks.org/index.pl?node_id=1099238 user Tue, 02 Sep 2014 09:54:34 +0000 http://perlmonks.org/index.pl?node_id=1099238 1099238 1099238 2014-09-02 05:54:34 annabeleva Kevak Kevak http://perlmonks.org/index.pl?node_id=1099226 user Tue, 02 Sep 2014 07:07:18 +0000 http://perlmonks.org/index.pl?node_id=1099226 1099226 1099226 2014-09-02 03:07:18 Kevak