<?xml version="1.0" encoding="windows-1252"?>
<node id="1003608" title="Re: Replace strings in multiple files" created="2012-11-13 08:18:41" updated="2012-11-13 08:18:41">
<type id="11">
note</type>
<author id="131741">
zentara</author>
<data>
<field name="doctext">
Something like this basic [doc://File::Find] code should show you the right technique. Where I do the print, open and process the file.
&lt;c&gt;
#!/usr/bin/perl
use warnings;
use strict;
use File::Find;
use File::Basename;

my $dir = '.';

my @files;

my @exts = qw(wbmp wmf jpeg jpe jpg ani bmp gif ico cur pcx png pnm pbm pgm ppm ras tga targa xbm tiff tif xpm svg svgz);

find( sub {
           my $file = $File::Find::name;
           my ($name, $path, $extension) = fileparse($file,'\..*');
           substr $extension, 0, 1, ''; #remove leading . 
	  
	    if( grep {$_ eq $extension}  @exts ){
         	   print "file - $file   ext = $extension\n" ;
           }
     
    }, $dir );

#print "@files\n";

&lt;/c&gt;



&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-131741"&gt;
&lt;hr /&gt;
I'm not really a human, but I play one on earth.&lt;br&gt;
[id://630805] ................... &lt;a href=http://zentara.net/japh.html&gt; flash japh &lt;/a&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1003607</field>
<field name="parent_node">
1003607</field>
</data>
</node>
