Re: How to compile just the current perl module, ignoring all the other included modules

2012-01-23 Thread Shawn H Corey
On 12-01-23 12:38 PM, Nemana, Satya wrote: I tried perl -c also with the same results. It takes 4-5 minutes to know that I missed a " some where. It is very painful. Is there no other way? That's very unusual, most scripts take only a few seconds to compile. Try: perl -MO=Deparse MyModule.pm

[RESEND] Please Review: Perl for Perl Newbies Part 5 - Good Programming Practices

2012-01-23 Thread Shlomi Fish
Hi all, [ I've sent this message before the winter holidays and did not get any meaningful reply, and so I'm sending it again hoping that this would be a better timing. ] I've finally finished writing the 5th part of "Perl for Perl Newbies": http://www.shlomifish.org/lecture/Perl/Newbies/lectur

RE: How to compile just the current perl module, ignoring all the other included modules

2012-01-23 Thread Nemana, Satya
Hi Shawn I tried perl -c also with the same results. It takes 4-5 minutes to know that I missed a " some where. It is very painful. Is there no other way? Thanks, Regards, Satya -Original Message- From: Shawn H Corey [mailto:shawnhco...@gmail.com] Sent: 23 January 2012 16:38 To: begin

Re: How to compile just the current perl module, ignoring all the other included modules

2012-01-23 Thread Shawn H Corey
On 12-01-23 11:20 AM, Nemana, Satya wrote: Hi Gurus I have to compile a perl module which includes a lot of other modules. The other modules will not change during compilations of my current module. Only my current module keeps on changing. The compiler however starts compiling from all the modu

How to compile just the current perl module, ignoring all the other included modules

2012-01-23 Thread Nemana, Satya
Hi Gurus I have to compile a perl module which includes a lot of other modules. The other modules will not change during compilations of my current module. Only my current module keeps on changing. The compiler however starts compiling from all the modules included in the current module with the

Re: Scalar::Util::blessed() considers Regexp references to be blessed?

2012-01-23 Thread Brian Fraser
On Mon, Jan 23, 2012 at 2:12 AM, David Christensen < dpchr...@holgerdanske.com> wrote: > beginners@perl.org: > > While coding some tests tonight, I discovered that Scalar::Util::blessed() > considers Regexp references to be blessed. > > > Is this a bug or a feature? > Implementation detail. Inter

Re: Collecting variables from Hash

2012-01-23 Thread Igor Dovgiy
Hi Pradeep, use List::Util qw( sum ); use constant { SUFFICIENT_SUCCESS => 244 } ... my $success = sum( map { /success$/ ? $results_href->{$_} : () } keys %$results_href ); ... return $success == SUFFICIENT_SUCCESS; -- iD 2012/1/22 Pradeep Patra > Hi, > I have a hash reference as follows: