On Fri, Sep 19, 2003 at 02:05:39PM -0400, Jeff Trawick wrote:
> Glenn wrote:
> >On Fri, Sep 19, 2003 at 11:49:03AM -0400, Jeff Trawick wrote:
> >
> >>a.k.a. "What should the apxs 2.0 require statement say?"
> 
> 
>                      +
>                     /+\
>                      +
>                      +
>                      +

Heh.  Ok.  Let me try answering your actual question now. :-)

Perl 5.004 is needed to do
  foreach my $var (@whatever) {
     ...
  }

I'm not sure when 
  my $cntopen = () = ($before =~ m|^\s*<[^/].*$|mg);
starts working.  I'd guess 5.004 since I've been using this trick
for quite a while.  Even so, I think following works with any Perl 5:
  my $cntopen = @{[($before =~ m|^\s*<[^/].*$|mg)]};

For more info:

man perl5004delta
man perl5005delta
man perl56delta
man perl561delta
...
man perl  (for a complete list of perl-related man pages)

Cheers,
Glenn

Reply via email to