Jim,
> qq:i {} is just like qq{} except that when it interpolates variables,
> those which are undefined are preserved literally.
I think surprise might be a problem. E.g.
my $index = 0;
eval qq:i {
my @array = A .. Z;
sub example {
for my $index (0 .. $
Jim Cromie writes:
> since the qq:X family has recently come up, Id like to suggest another.
>
> qq:i {} is just like qq{} except that when it interpolates variables,
> those which are undefined are preserved literally.
So then when doing maintenance on some code I can break it by
On Tue, Nov 30, 2004 at 05:54:45PM -0700, Luke Palmer wrote:
> Jim Cromie writes:
> >
> > since the qq:X family has recently come up, Id like to suggest another.
> >
> > qq:i {} is just like qq{} except that when it interpolates variables,
> > those which are
Jim Cromie writes:
>
> since the qq:X family has recently come up, Id like to suggest another.
>
> qq:i {} is just like qq{} except that when it interpolates variables,
> those which are undefined are preserved literally.
Eeeew. Probably going to shoot this down. But let
Jim Cromie skribis 2004-11-30 16:53 (-0700):
>my @args = @{$template{args}};
>my $body = $template{body};
>eval sub qq:i{
> my ($self, @args) = @_;
> $body;
>}
Please explain what you want it to do with @args there.
Juerd