Hi all,
I keep receiving these bounces due to posts I make to beginners@perl.org. It
seems that it is a mail filter on the pearsontc.com domain (though I don't know
the username there). Can this be fixed?
Regards,
Shlomi Fish
Begin forwarded message:
Date: Tue, 05 Jun 2012 02:19:31 -0
Hello John,
On Mon, 04 Jun 2012 14:19:27 -0700
"John W. Krahn" wrote:
> Chris Stinemetz wrote:
> > I have a subroutine that I want to "return 1" only if the value of
> > %{$href->{$_[0]}} is equal to 'ND' for the whole 24 occurences.
>
>
> One way to do it:
>
> sub site_offAir {
> return
I want to understand why Mark thinks he needs mod_perl. If it's just because he
wants to speed up his app (soup up the engine) there might be things he can do
that don't require rewriting a lot of code, or spending a lot of time learning
a lot of new ways of doing things.
Me second.
If the
Chris Stinemetz wrote:
I have a subroutine that I want to "return 1" only if the value of
%{$href->{$_[0]}} is equal to 'ND' for the whole 24 occurences.
One way to do it:
sub site_offAir {
return values %{ $href->{ $_[ 0 ] } } == grep( $_ eq 'ND', values
%{ $href->{ $_[ 0 ] } } ) ? 1 :
Thank you everyone. Your help has been very helpful..
Chris
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
On 12-06-04 02:01 PM, Bill Stephenson wrote:
The "values %{$href->{$_[0]}}" code is pretty ugly but I get it now. And it
make sense to break out of the loop as soon as you don't pass the test.
sub site_offAir {
my $site_id = shift @_;
for my $activity_code ( values %{ $activity_of->{$sit
Thanks Shawn!
The "values %{$href->{$_[0]}}" code is pretty ugly but I get it now. And it
make sense to break out of the loop as soon as you don't pass the test.
Kindest Regards,
Bill Stephenson
On Jun 4, 2012, at 12:49 PM, Shawn H Corey wrote:
> On 12-06-04 12:30 PM, Chris Stinemetz wrote
On 12-06-04 12:30 PM, Chris Stinemetz wrote:
I have a subroutine that I want to "return 1" only if the value of
%{$href->{$_[0]}} is equal to 'ND' for the whole 24 occurences.
Any suggestions is greatly appreciated.
Thank you,
Chris
sub site_offAir {
for (values %{$href->{$_[0]}}) {
r
On Jun 4, 2012, at 11:30 AM, Chris Stinemetz wrote:
> I have a subroutine that I want to "return 1" only if the value of
> %{$href->{$_[0]}} is equal to 'ND' for the whole 24 occurences.
>
> Any suggestions is greatly appreciated.
>
Chris, I don't know how to read your hash directly (hash of ha
On Jun 4, 2012, at 8:57 AM, Chris Nehren wrote:
>>
>> Well, from all I've read and been told is that mod_perl is a better
>> fit than using CGI.pm like I've been doing.
>
> Erg. CGI.pm is a terrible idea--runtime string eval and all that
> silliness.
Well, again, I disagree with that. This cam
On Mon, Jun 04, 2012 at 11:30:30AM -0500, Chris Stinemetz wrote:
> I have a subroutine that I want to "return 1" only if the value of
> %{$href->{$_[0]}} is equal to 'ND' for the whole 24 occurences.
>
> Any suggestions is greatly appreciated.
>
> Thank you,
>
> Chris
>
> sub site_offAir {
>
I have a subroutine that I want to "return 1" only if the value of
%{$href->{$_[0]}} is equal to 'ND' for the whole 24 occurences.
Any suggestions is greatly appreciated.
Thank you,
Chris
sub site_offAir {
for (values %{$href->{$_[0]}}) {
return 1 if $_ eq 'ND'; #need to test all values a
On Mon, Jun 04, 2012 at 11:36:21 -0400 , Mark Haney wrote:
> On 06/04/2012 09:57 AM, Chris Nehren wrote:
>
> >
> >Erg. CGI.pm is a terrible idea--runtime string eval and all that
> >silliness. Please investigate one of the lighter Plack/PSGI frameworks
> >like Dancer and Web::Simple. Really, mod_p
On 06/04/2012 09:57 AM, Chris Nehren wrote:
Erg. CGI.pm is a terrible idea--runtime string eval and all that
silliness. Please investigate one of the lighter Plack/PSGI frameworks
like Dancer and Web::Simple. Really, mod_perl is the wrong tool for the
job here. It's for writing Apache modules w
On Mon, Jun 04, 2012 at 08:42:43 -0400 , Mark Haney wrote:
> On 06/03/2012 07:30 PM, Chris Nehren wrote:
>
> >Don't, unless you're writing Apache modules in Perl. There are much
> >better choices for doing web dev in Perl, like Catalyst, Dancer,
> >Web::Simple, etc., which all use Plack/PSGI. Thes
On 06/03/2012 07:30 PM, Chris Nehren wrote:
Don't, unless you're writing Apache modules in Perl. There are much
better choices for doing web dev in Perl, like Catalyst, Dancer,
Web::Simple, etc., which all use Plack/PSGI. These can all be deployed
on any web server.
Well, from all I've read a
> From: Bill Stephenson
>
> :)
>
> No, there's no sales pitch... The Raspberry Pi is a legit project, nonprofit
> and
> meant for educational purposes.
>
> But that doesn't mean we can't buy and sell them for commercial purposes.
> That helps them too. They need volume to keep cost down, and th
17 matches
Mail list logo