xml-axkit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject cvs commit: xml-axkit/lib/Apache/AxKit Provider.pm
Date Fri, 15 Mar 2002 13:35:04 GMT
matts       02/03/15 05:35:04

  Modified:    lib/Apache/AxKit Provider.pm
  Log:
  $_ in foreach gives me the heebie geebies
  
  Revision  Changes    Path
  1.3       +5 -2      xml-axkit/lib/Apache/AxKit/Provider.pm
  
  Index: Provider.pm
  ===================================================================
  RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Provider.pm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Provider.pm	21 Feb 2002 16:35:15 -0000	1.2
  +++ Provider.pm	15 Mar 2002 13:35:04 -0000	1.3
  @@ -1,4 +1,4 @@
  -# $Id: Provider.pm,v 1.2 2002/02/21 16:35:15 darobin Exp $
  +# $Id: Provider.pm,v 1.3 2002/03/15 13:35:04 matts Exp $
   
   package Apache::AxKit::Provider;
   use strict;
  @@ -154,7 +154,10 @@
           AxKit::Debug(4, "get_styles: parse returned successfully");
       }
       
  -    foreach (@$xml_styles) { $_->{title} ||= '#default'; }
  +    foreach my $style (@$xml_styles) {
  +        $style->{title} ||= '#default';
  +    }
  +    
       # Let GetMatchingProcessors to process the @$styles array
       AxKit::Debug(4, "Calling GetMatchingProcessors with ($media, $pref_style, $vals->[0],
$vals->[1], $vals->[2])");
       my @styles = $AxKit::Cfg->GetMatchingProcessors($media,
  
  
  

Mime
View raw message