<?xml version="1.0" encoding="windows-1252"?>
<node id="948792" title="Loop Break" created="2012-01-19 10:37:20" updated="2012-01-19 10:37:20">
<type id="115">
perlquestion</type>
<author id="944627">
stallion</author>
<data>
<field name="doctext">
&lt;p&gt;Hi monks im trying to get the file names in a directory ..but its getting repeated again and again..Pls rectify&lt;/p&gt;

&lt;Code&gt;
	foreach $file (&lt;*.*&gt;)
		{
		if($file =~ /\.c/) 
		{
		
		$filename = $file; 	
		print m"$filename\n";
			
		}
	}
&lt;/Code&gt;</field>
</data>
</node>
