Re: qq:i

2004-12-01 Thread Jonathan Paton
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 .. $

Re: qq:i

2004-11-30 Thread Smylers
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

Re: qq:i

2004-11-30 Thread John Macdonald
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

Re: qq:i

2004-11-30 Thread Luke Palmer
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

Re: qq:i

2004-11-30 Thread Juerd
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