[31769] in Perl-Users-Digest
Perl-Users Digest, Issue: 3032 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jul 16 16:15:02 2010
Date: Fri, 16 Jul 2010 13:14:49 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 16 Jul 2010 Volume: 11 Number: 3032
Today's topics:
How can I get the CENTER n chars from a string? <misterperl@gmail.com>
Re: How can I get the CENTER n chars from a string? <jfeuerst@eecs.tufts.edu>
Re: How can I get the CENTER n chars from a string? <ben@morrow.me.uk>
Re: How can I get the CENTER n chars from a string? <misterperl@gmail.com>
Re: How can I get the CENTER n chars from a string? <misterperl@gmail.com>
Re: How can I get the CENTER n chars from a string? <rvtol+usenet@xs4all.nl>
Re: How can I get the CENTER n chars from a string? <justin.1007@purestblue.com>
Re: How can I get the CENTER n chars from a string? <justin.1007@purestblue.com>
Re: How can I get the CENTER n chars from a string? <rvtol+usenet@xs4all.nl>
Re: How can I get the CENTER n chars from a string? <misterperl@gmail.com>
Re: How can I get the CENTER n chars from a string? <misterperl@gmail.com>
Re: How can I get the CENTER n chars from a string? <uri@StemSystems.com>
Re: How can I get the CENTER n chars from a string? <derykus@gmail.com>
Re: How can I get the CENTER n chars from a string? <hecht@onet.pl>
Re: How can I get the CENTER n chars from a string? <willem@turtle.stack.nl>
Is Mason dead? Was: MasonCompRoot and globs <tw@dionic.net>
Re: Is Mason dead? Was: MasonCompRoot and globs <spamtrap@shermpendley.com>
Re: Is Mason dead? Was: MasonCompRoot and globs <glex_no-spam@qwest-spam-no.invalid>
Re: Is Mason dead? Was: MasonCompRoot and globs <tw@dionic.net>
Re: Is Mason dead? Was: MasonCompRoot and globs <tw@dionic.net>
Re: Is Mason dead? Was: MasonCompRoot and globs <ben@morrow.me.uk>
Re: Is Mason dead? Was: MasonCompRoot and globs <ben@morrow.me.uk>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 14 Jul 2010 11:22:42 -0700 (PDT)
From: Mr P <misterperl@gmail.com>
Subject: How can I get the CENTER n chars from a string?
Message-Id: <aaf9d504-5b0d-46e6-aa8b-6b5d8ca1dacb@b35g2000yqi.googlegroups.com>
Lets say I want the CENTER 2 characters from any (even length) string?
123456 .. 34
ABC123 .. C1
1223 ..22
1234567890 .. 56
AB .. AB
is there A regex that can handle this for ANY even length string? Im
pretty good with regexes but I cant think of one that can handle it.
sorta like
s/(.+)(..)(.+)/$2/ where the length of $1 == length of $2..
Thanks!
------------------------------
Date: Wed, 14 Jul 2010 18:32:25 +0000 (UTC)
From: Jozxyqk <jfeuerst@eecs.tufts.edu>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <i1kvrp$qku$1@news.eternal-september.org>
Mr P <misterperl@gmail.com> wrote:
> Lets say I want the CENTER 2 characters from any (even length) string?
> is there A regex that can handle this for ANY even length string? Im
> pretty good with regexes but I cant think of one that can handle it.
Why use a regex?
substr($string,length($string)/2-1,2);
------------------------------
Date: Wed, 14 Jul 2010 20:44:53 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <lmg1h7-6bd.ln1@osiris.mauzo.dyndns.org>
Quoth Mr P <misterperl@gmail.com>:
> Lets say I want the CENTER 2 characters from any (even length) string?
>
> 123456 .. 34
> ABC123 .. C1
> 1223 ..22
> 1234567890 .. 56
> AB .. AB
>
>
> is there A regex that can handle this for ANY even length string? Im
> pretty good with regexes but I cant think of one that can handle it.
>
> sorta like
> s/(.+)(..)(.+)/$2/ where the length of $1 == length of $2..
Well, the obvious way would be
/(.+)(..)(??{ "." x length $1 })/
In principle it ought to be possible to do this by treating it as a
bracketed construct, using the new recursion primitives in 5.10, but
while
/^( . (?: (..) | (?1) ) . )$/x
performs the match correctly, the recursion resets $2 so you lose the
capture. This can be fixed with
use vars qw/$centre/;
/^( . (?: (..)(?{ $centre = $2 }) | (?1) ) . )$/x
but IIRC referencing lexicals is one of the things you mustn't do from
within a (?{}) group (there are nasty bugs here) so you have to use a
package global instead.
Ben
------------------------------
Date: Thu, 15 Jul 2010 05:30:07 -0700 (PDT)
From: Mr P <misterperl@gmail.com>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <395cf8cb-d59a-4ec4-8cd5-006c568850e9@q22g2000yqm.googlegroups.com>
On Jul 14, 3:44=A0pm, Ben Morrow <b...@morrow.me.uk> wrote:
> Quoth Mr P <misterp...@gmail.com>:
>
> > Lets say I want the CENTER 2 characters from any (even length) string?
>
> > 123456 .. 34
> > ABC123 .. C1
> > 1223 ..22
> > 1234567890 .. 56
> > AB .. AB
>
> > is there A regex that can handle this for ANY even length string? =A0Im
> > pretty good with regexes but I cant think of one that can handle it.
>
> > sorta like
> > s/(.+)(..)(.+)/$2/ =A0where the length of $1 =3D=3D length of $2..
>
> Well, the obvious way would be
>
> =A0 =A0 /(.+)(..)(??{ "." x length $1 })/
>
> In principle it ought to be possible to do this by treating it as a
> bracketed construct, using the new recursion primitives in 5.10, but
> while
>
> =A0 =A0 /^( . (?: (..) | (?1) ) . )$/x
>
> performs the match correctly, the recursion resets $2 so you lose the
> capture. This can be fixed with
>
> =A0 =A0 use vars qw/$centre/;
> =A0 =A0 /^( . (?: (..)(?{ $centre =3D $2 }) | (?1) ) . )$/x
>
> but IIRC referencing lexicals is one of the things you mustn't do from
> within a (?{}) group (there are nasty bugs here) so you have to use a
> package global instead.
>
> Ben
Ahh very helpful Ben thanks!
------------------------------
Date: Thu, 15 Jul 2010 05:32:06 -0700 (PDT)
From: Mr P <misterperl@gmail.com>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <38743aba-5834-40cb-ad0b-a68d9c2715fd@d37g2000yqm.googlegroups.com>
On Jul 14, 2:32=A0pm, Jozxyqk <jfeue...@eecs.tufts.edu> wrote:
> Mr P <misterp...@gmail.com> wrote:
> > Lets say I want the CENTER 2 characters from any (even length) string?
> > is there A regex that can handle this for ANY even length string? =A0Im
> > pretty good with regexes but I cant think of one that can handle it.
>
> Why use a regex?
>
> substr($string,length($string)/2-1,2);
I'd thought of this approach and even played with it a bit- you left
out the test for *evenness* however. I just love regexes I'd hoped
there was something simple Id missed like some assertion that would
make it EZ.. Ben's solution is pretty durn good though!
------------------------------
Date: Thu, 15 Jul 2010 15:43:50 +0200
From: "Dr.Ruud" <rvtol+usenet@xs4all.nl>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <4c3f1096$0$22935$e4fe514c@news.xs4all.nl>
Mr P wrote:
> On Jul 14, 2:32 pm, Jozxyqk <jfeue...@eecs.tufts.edu> wrote:
>> Mr P <misterp...@gmail.com> wrote:
>>> Lets say I want the CENTER 2 characters from any (even length) string?
>>> is there A regex that can handle this for ANY even length string? Im
>>> pretty good with regexes but I cant think of one that can handle it.
>>
>> Why use a regex?
>>
>> substr($string,length($string)/2-1,2);
>
> I'd thought of this approach and even played with it a bit- you left
> out the test for *evenness* however. I just love regexes I'd hoped
> there was something simple Id missed like some assertion that would
> make it EZ.. Ben's solution is pretty durn good though!
Question 1 was: Why use a regex?
Question 2 is: Why did you lie about the string having an even length?
And as a direction, you presented a substitution in stead of a regex.
perl -wle '
my $center = @ARGV ? $ARGV[0] : q{TE$T};
exit 1 if $center =~ /\A(?:..)*.\z/s; # odd
1 while $center =~ s/\A.(.{2,}).\z/$1/s;
print $center;
'
E$
--
Ruud
------------------------------
Date: Thu, 15 Jul 2010 15:00:36 +0100
From: Justin C <justin.1007@purestblue.com>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <4tg3h7-n97.ln1@zem.masonsmusic.co.uk>
On 2010-07-14, Mr P <misterperl@gmail.com> wrote:
> Lets say I want the CENTER 2 characters from any (even length) string?
>
> 123456 .. 34
> ABC123 .. C1
> 1223 ..22
> 1234567890 .. 56
> AB .. AB
>
>
> is there A regex that can handle this for ANY even length string? Im
> pretty good with regexes but I cant think of one that can handle it.
>
> sorta like
> s/(.+)(..)(.+)/$2/ where the length of $1 == length of $2..
Don't use a regex, use substr() and some maths.
Something like: my $str = substr($_, (length($_)/2) - 1, 2);
I see that you are asking for a regex, and while I don't think that's
the appropriate way to do it, it is possible that you're asking for a
regex to do this for a reason. If you really want a regex then that's
beyond my current regex ability.... actually:
my $c = length($_);
$_ =~ s/^.{$c}(.{2}).{$c}/$1/;
Thank you for the little puzzle which has aided my education!
Justin.
------------------------------
Date: Thu, 15 Jul 2010 15:17:22 +0100
From: Justin C <justin.1007@purestblue.com>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <ish3h7-uj8.ln1@zem.masonsmusic.co.uk>
On 2010-07-14, Mr P <misterperl@gmail.com> wrote:
> Lets say I want the CENTER 2 characters from any (even length) string?
>
> 123456 .. 34
> ABC123 .. C1
> 1223 ..22
> 1234567890 .. 56
> AB .. AB
>
>
> is there A regex that can handle this for ANY even length string? Im
> pretty good with regexes but I cant think of one that can handle it.
>
> sorta like
> s/(.+)(..)(.+)/$2/ where the length of $1 == length of $2..
>
> Thanks!
I know my last post was wrong! I'm just posting before everyone jumps on
it! What I meant was:
my $c = (length($_) / 2) - 1;
$_ =~ s/^.{$c}(.{2}).{$c}$/$1/;
Justin.
------------------------------
Date: Thu, 15 Jul 2010 18:31:26 +0200
From: "Dr.Ruud" <rvtol+usenet@xs4all.nl>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <4c3f37de$0$22943$e4fe514c@news.xs4all.nl>
Justin C wrote:
> my $c = (length($_) / 2) - 1;
> $_ =~ s/^.{$c}(.{2}).{$c}$/$1/;
You can get into trouble there with embedded newlines.
You can change it to
( $_ ) = /^ .{$c} (..) /sx;
Or even better, to
$_ = substr( $_, length() / 2 - 1, 2 );
--
Ruud
------------------------------
Date: Thu, 15 Jul 2010 10:01:49 -0700 (PDT)
From: Mr P <misterperl@gmail.com>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <7954b1f2-9b8a-4550-969e-44b9a8ff568a@w31g2000yqb.googlegroups.com>
Just to see what error it would throw- I tried this:
s/^(.*)(..)(.*)$/$2/ if length $1 == length $2;
Curiously it said *attempted to modified a read-only value* which I
thought was odd- I don't see where I'm trying to do that at all. I
expected it to say something was un-innited or something like that?
------------------------------
Date: Thu, 15 Jul 2010 10:03:06 -0700 (PDT)
From: Mr P <misterperl@gmail.com>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <2f9acbd1-c233-49fa-b4a8-ce0a528f8a34@s9g2000yqd.googlegroups.com>
On Jul 15, 9:43=A0am, "Dr.Ruud" <rvtol+use...@xs4all.nl> wrote:
> Mr P wrote:
> > On Jul 14, 2:32 pm, Jozxyqk <jfeue...@eecs.tufts.edu> wrote:
> >> Mr P <misterp...@gmail.com> wrote:
> >>> Lets say I want the CENTER 2 characters from any (even length) string=
?
> >>> is there A regex that can handle this for ANY even length string? =A0=
Im
> >>> pretty good with regexes but I cant think of one that can handle it.
>
> >> Why use a regex?
>
> >> substr($string,length($string)/2-1,2);
>
> > I'd thought of this approach and even played with it a bit- you left
> > out the test for *evenness* however. I just love regexes I'd hoped
> > there was something simple Id missed like some assertion that would
> > make it EZ.. Ben's solution is pretty durn good though!
>
> Question 1 was: Why use a regex?
> Question 2 is: Why did you lie about the string having an even length?
>
> And as a direction, you presented a substitution in stead of a regex.
>
> perl -wle '
> =A0 =A0 =A0my $center =3D @ARGV ? $ARGV[0] : q{TE$T};
> =A0 =A0 =A0exit 1 if $center =3D~ /\A(?:..)*.\z/s; =A0# odd
>
> =A0 =A0 =A01 while $center =3D~ s/\A.(.{2,}).\z/$1/s;
>
> =A0 =A0 =A0print $center;
> '
> E$
>
> --
> Ruud
OMG dude!
------------------------------
Date: Thu, 15 Jul 2010 13:10:50 -0400
From: "Uri Guttman" <uri@StemSystems.com>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <87bpa8brhh.fsf@quad.sysarch.com>
>>>>> "P" == P <misterperl@gmail.com> writes:
P> Just to see what error it would throw- I tried this:
P> s/^(.*)(..)(.*)$/$2/ if length $1 == length $2;
P> Curiously it said *attempted to modified a read-only value* which I
P> thought was odd- I don't see where I'm trying to do that at all. I
P> expected it to say something was un-innited or something like that?
regardless of that error, that will never work. the if modifier is
executed BEFORE the s///. that means it looks at the previous settings
of $1 and $2 from some other regex.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
------------------------------
Date: Thu, 15 Jul 2010 23:40:44 -0700 (PDT)
From: "C.DeRykus" <derykus@gmail.com>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <968c039d-f8b3-4fe0-9c03-78e319c84abf@c36g2000prf.googlegroups.com>
On Jul 15, 9:31=A0am, "Dr.Ruud" <rvtol+use...@xs4all.nl> wrote:
> Justin C wrote:
> > my $c =3D (length($_) / 2) - 1;
> > $_ =3D~ s/^.{$c}(.{2}).{$c}$/$1/;
>
> You can get into trouble there with embedded newlines.
>
> You can change it to
>
> =A0 =A0( $_ ) =3D /^ .{$c} (..) /sx;
or, even prime it with pos(), although
maybe there'd be no speedup.
pos() =3D $c;
($_) =3D /(..)/g;
>
> Or even better, to
>
> =A0 =A0$_ =3D substr( $_, length() / 2 - 1, 2 );
>
Agree totally - this'd be fastest.
--
Charles DeRykus
------------------------------
Date: Fri, 16 Jul 2010 11:03:25 +0200
From: Hecht <hecht@onet.pl>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <i1p78t$or0$1@news.onet.pl>
On 14.07.2010 20:22, Mr P wrote:
> Lets say I want the CENTER 2 characters from any (even length) string?
>
> 123456 .. 34
> ABC123 .. C1
> 1223 ..22
> 1234567890 .. 56
> AB .. AB
>
>
> is there A regex that can handle this for ANY even length string? Im
> pretty good with regexes but I cant think of one that can handle it.
>
> sorta like
> s/(.+)(..)(.+)/$2/ where the length of $1 == length of $2..
>
> Thanks!
I would do this in this way:
my $string = "123456";
my @string = split //, $string;
my $length = @string;
my $result= $length/2;
print $string[$result-1] . $string[$result];
crude but works.
Daniel
------------------------------
Date: Fri, 16 Jul 2010 09:11:43 +0000 (UTC)
From: Willem <willem@turtle.stack.nl>
Subject: Re: How can I get the CENTER n chars from a string?
Message-Id: <slrni408if.2ed3.willem@turtle.stack.nl>
Hecht wrote:
) I would do this in this way:
)
)
) my $string = "123456";
) my @string = split //, $string;
) my $length = @string;
) my $result= $length/2;
) print $string[$result-1] . $string[$result];
)
) crude but works.
Very crude indeed, given that the same can be achieved with simple
string operations, such as 'length' and 'substr', as already shown
crossthread. substr($string,length($string)/2-1,2) does the trick.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
------------------------------
Date: Fri, 16 Jul 2010 10:49:07 +0100
From: Tim Watts <tw@dionic.net>
Subject: Is Mason dead? Was: MasonCompRoot and globs
Message-Id: <i1p9uj$pf9$1@news.eternal-september.org>
Hi,
Judging by the resounding lack of action re Mason here and on the MasonHQ
lists do I conclude that using Mason on a new project is a bad idea?
Is there something better that's solid?
Cheers
Tim
------------------------------
Date: Fri, 16 Jul 2010 09:36:10 -0400
From: Sherm Pendley <spamtrap@shermpendley.com>
Subject: Re: Is Mason dead? Was: MasonCompRoot and globs
Message-Id: <m2mxtrpn05.fsf@shermpendley.com>
Tim Watts <tw@dionic.net> writes:
> Judging by the resounding lack of action re Mason here and on the MasonHQ
> lists do I conclude that using Mason on a new project is a bad idea?
I'd give it some time before drawing any conclusions - there's less
than a day between this message and your previous one.
Further, the lack of response to your question may indicate something
entirely different - for example, although I've used Mason in several
sites and had no problems with it, I've never tried what you're trying
and don't have an answer for you.
Warnock applies.
<http://en.wikipedia.org/wiki/Warnock%27s_Dilemma>
> Is there something better that's solid?
Template Toolkit is popular too, but I'd hesitate to call either one
"better," since both have been reliable in my experience.
sherm--
--
Sherm Pendley <www.shermpendley.com>
<www.camelbones.org>
Cocoa Developer
------------------------------
Date: Fri, 16 Jul 2010 11:09:25 -0500
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: Is Mason dead? Was: MasonCompRoot and globs
Message-Id: <4c408437$0$87072$815e3792@news.qwest.net>
Tim Watts wrote:
> Hi,
>
> Judging by the resounding lack of action re Mason here and on the MasonHQ
> lists do I conclude that using Mason on a new project is a bad idea?
Post your question to the Mason mailing list. That will
go to the authors and to others who are very knowledgeable about
Mason.
I've done what you want to do using a simple component, going
up a directory at a time, looking for a certain file, but maybe
there's a better way that would be mentioned by the mailing list.
Maybe this will help you:
http://masonhq.com/?Component:Recurser
It's pretty simple to write what you want to do, if
it's not already available in Mason.
>
> Is there something better that's solid?
Catalyst might be of interest. CGI::Application, Template Toolkit, etc.
------------------------------
Date: Fri, 16 Jul 2010 18:31:32 +0100
From: Tim Watts <tw@dionic.net>
Subject: Re: Is Mason dead? Was: MasonCompRoot and globs
Message-Id: <i1q51m$7oq$1@news.eternal-september.org>
Sherm Pendley <spamtrap@shermpendley.com>
wibbled on Friday 16 July 2010 14:36
> Tim Watts <tw@dionic.net> writes:
>
>> Judging by the resounding lack of action re Mason here and on the MasonHQ
>> lists do I conclude that using Mason on a new project is a bad idea?
>
> I'd give it some time before drawing any conclusions - there's less
> than a day between this message and your previous one.
Yes. Though the lists are suspiciously quiet (20 messages / month is quiet).
Maybe I'm too impatient - I'm used to uk.d-i-y where you generally get
something in 30 minutes - in fact it's so chattery it's practically ICQ!
> Further, the lack of response to your question may indicate something
> entirely different - for example, although I've used Mason in several
> sites and had no problems with it, I've never tried what you're trying
> and don't have an answer for you.
I think I've found a way.
The HTML::Mason::Resolver does not have any knowledge[1] of who called it so
it cannot ascertain the source directory of any components that are
"calling" it. So doing what I thought isn't possible that way (I added some
Data::Dumper routines in to see what it "knew").
[1] Well, there must be knowledge in the process somewhere, but it's not
passed to the Resolver in a clean way.
However, the answer may be in the autohandler and attributes... It's
possible to have a chain of autohandlers which are called from the top
(shorter) of the path down to the path that the URL maps to. One can set a
default attr or attrs in the top level autohandler and override if required
going down which is basically the "right thing" (TM).
I'm looking at def's and methods too but haven't groked them yet.
> Warnock applies.
>
> <http://en.wikipedia.org/wiki/Warnock%27s_Dilemma>
He forgot:
6) No one knows the answer - quite common IMO to get null replies to such a
post *unless* someone else
>> Is there something better that's solid?
>
> Template Toolkit is popular too, but I'd hesitate to call either one
> "better," since both have been reliable in my experience.
Mason seems solid. There's a fair bit I don't "get" yet, so I'm trying some
stuff in the MasonBook and reading the source where necessary.
I did my website in SSI (start simple I say). That's OK, but it's on the
limit and I'd like a slightly smarter templating system. And although I've
done some PHP I've not much liked it compared to perl.
Thanks for your post anyway :)
Cheers
Tim
--
Tim Watts
Managers, politicians and environmentalists: Nature's carbon buffer.
------------------------------
Date: Fri, 16 Jul 2010 18:41:23 +0100
From: Tim Watts <tw@dionic.net>
Subject: Re: Is Mason dead? Was: MasonCompRoot and globs
Message-Id: <i1q5k4$5h3$1@news.eternal-september.org>
J. Gleixner <glex_no-spam@qwest-spam-no.invalid>
wibbled on Friday 16 July 2010 17:09
> Tim Watts wrote:
>> Hi,
>>
>> Judging by the resounding lack of action re Mason here and on the MasonHQ
>> lists do I conclude that using Mason on a new project is a bad idea?
>
> Post your question to the Mason mailing list. That will
> go to the authors and to others who are very knowledgeable about
> Mason.
Hi
I did that first - mason-users anyway.
That's a very low volume list of late which makes me suspicious. It either
means Mason is used by no one but experts who know everything already, or
it's used by noone full stop...
> I've done what you want to do using a simple component, going
> up a directory at a time, looking for a certain file, but maybe
> there's a better way that would be mentioned by the mailing list.
>
> Maybe this will help you:
>
> http://masonhq.com/?Component:Recurser
>
> It's pretty simple to write what you want to do, if
> it's not already available in Mason.
Ah - I see. That's pretty neat - in fact it does what I want. I hadn't
thought to make a component as a wrapper to execute another component - I
was trying to hack Mason's guts to do that (and failing miserably!).
>>
>> Is there something better that's solid?
>
> Catalyst might be of interest. CGI::Application, Template Toolkit, etc.
Name rings a bell. I should look at that now. I'm not committed to Mason,
I'm just looking for the next stage up from SSI to do my website.
Thanks for the post! :)
Cheers
Tim
--
Tim Watts
Managers, politicians and environmentalists: Nature's carbon buffer.
------------------------------
Date: Fri, 16 Jul 2010 19:10:23 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Is Mason dead? Was: MasonCompRoot and globs
Message-Id: <ftj6h7-i9g1.ln1@osiris.mauzo.dyndns.org>
Quoth Tim Watts <tw@dionic.net>:
> Sherm Pendley <spamtrap@shermpendley.com>
> wibbled on Friday 16 July 2010 14:36
>
> > Warnock applies.
> >
> > <http://en.wikipedia.org/wiki/Warnock%27s_Dilemma>
>
> He forgot:
>
> 6) No one knows the answer - quite common IMO to get null replies to such a
> post *unless* someone else
Warnock was talking specifically about the case of someone submitting a
propsal or patch to a development list (in the original case,
bootstrap@perl.org, one of the early Perl 6 discussion lists). If
someone is asking a question there are a *lot* of other alternatives.
Ben
------------------------------
Date: Fri, 16 Jul 2010 19:18:44 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Is Mason dead? Was: MasonCompRoot and globs
Message-Id: <4dk6h7-i9g1.ln1@osiris.mauzo.dyndns.org>
Quoth Tim Watts <tw@dionic.net>:
> J. Gleixner <glex_no-spam@qwest-spam-no.invalid>
> wibbled on Friday 16 July 2010 17:09
>
> > Tim Watts wrote:
> >> Hi,
> >>
> >> Judging by the resounding lack of action re Mason here and on the MasonHQ
> >> lists do I conclude that using Mason on a new project is a bad idea?
> >
> > Post your question to the Mason mailing list. That will
> > go to the authors and to others who are very knowledgeable about
> > Mason.
>
> I did that first - mason-users anyway.
>
> That's a very low volume list of late which makes me suspicious. It either
> means Mason is used by no one but experts who know everything already, or
> it's used by noone full stop...
You could also try #mason on irc.perl.org. (I've no idea what the
response-rate is like, since I've never used Mason, but the channel
exists and there are people there I know have a clue.)
> > Catalyst might be of interest. CGI::Application, Template Toolkit, etc.
>
> Name rings a bell. I should look at that now. I'm not committed to Mason,
> I'm just looking for the next stage up from SSI to do my website.
Catalyst is quite complicated. That is, once you've got your head around
the Cat way of doing things, it's rather simple, but there's quite a
learning curve to get there. FWIW, I know first-hand that #catalyst (and
#dbix-class, which you'd probably end up using too) is very helpful.
Ben
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 3032
***************************************