On Mon, 2005-08-15 at 00:29 -0400, Tom Metro wrote:
> The basic question, though, remains. Although there are a bunch of
> ways
> to pull this off, what I'm trying to determine is which is the least
> intrusive to the admin and what are admins expecting to see these
> days.
> Is an admin more lik
> as I recall, it still lacks things
> like sessions or authentication.
Not sure about that. Randal evolved it for a shopping-cart type app, so
I would think it has something like that.
> More importantly, does anyone "get" Randal's CGI::Prototype?
See http://www.stonehenge.com/merlyn/LinuxMag
Dear Uri,
Thanks to you and the others for your prompt responses.
> another bad point about eval is that it can access and modify lexicals
> and globals anywhere in the code. so that can lead to action at a
> distance and very hard to find bugs.
I don't quite follow.
Globals are anyway accessib
Dear Tom,
> You seem to be blending the concepts of eval and system.
Sorry about the confusing presentation there. My friend had
actually written something like:
--\/BEGIN-\/--
$string = "system(\"cat $somefile | mail -s \\\"$something\\\"
On Aug 15, 2005, at 11:17 AM, Kripa Sundar wrote:
> I asked him to re-write it as:
>
> system("cat $somefile | mail -s '$something' $audience");
Which of course should really be written as:
system("mail -s '$something' '$audience' < $somefile");
___
> Which of course should really be written as:
>
> system("mail -s '$something' '$audience' < $somefile");
Yes, of course. It is one of the classic useless uses of cat(1).
I had meant to write this also to my friend, but forgot in my
indignation over six backslashes. :-)
peace,
On 8/15/05, Ricker, William <[EMAIL PROTECTED]> wrote:
[...]
> CGI::Prototype offers a _different_ way of factoring out the "you always
> had to write this glue code" code. Catalyst uses the Perl Attributes
> annotations to factor out glue-code, which is classy demonstration that
> attributes are
> My understanding is that attributes are processed at CHECK
> time, which means that code using attributes would not
> work right if loaded after CHECK has run. In web
> development this could mean that Apache::Reload and
> attributes would *not* play well together. (Which would be
> a pretty bi
On 8/15/05, Kripa Sundar <[EMAIL PROTECTED]> wrote:
> Dear Uri,
>
> Thanks to you and the others for your prompt responses.
>
> > another bad point about eval is that it can access and modify lexicals
> > and globals anywhere in the code. so that can lead to action at a
> > distance and very hard
Dear Ben,
> > > another bad point about eval is that it can access and modify lexicals
> > > and globals anywhere in the code. so that can lead to action at a
> > > distance and very hard to find bugs.
> > [...]
> I'm not sure if this is what is referred to, but it applies.
>
> If this is dynamic
On 8/15/05, Kripa Sundar <[EMAIL PROTECTED]> wrote:
> Dear Ben,
>
> > > > another bad point about eval is that it can access and modify lexicals
> > > > and globals anywhere in the code. so that can lead to action at a
> > > > distance and very hard to find bugs.
> > > [...]
> > I'm not sure if th
From: Kripa Sundar <[EMAIL PROTECTED]>
Date: Mon, 15 Aug 2005 14:04:48 -0400
Dear Ben,
> > > another bad point about eval is that it can access and modify lexicals
> > > and globals anywhere in the code. so that can lead to action at a
> > > distance and very hard to find bugs.
On 8/15/05, Bob Rogers <[EMAIL PROTECTED]> wrote:
>From: Kripa Sundar <[EMAIL PROTECTED]>
>Date: Mon, 15 Aug 2005 14:04:48 -0400
[...]
>> If this is dynamic code where the string to be evaled is
>> passed in from elsewhere, then one problem is that you
>> might wind up picking u
Off-list, I'm told my comment
> CGI::Application uses Attributes for some things as well, so ...
> someone must have [f]igured it out?
is only partially right, as Attributes are only in a C:A:Plugin,
http://search.cpan.org/~thilo/CGI-Application-Plugin-AutoRunmode-0.08/Au
toRunmode.pm
Of course
14 matches
Mail list logo