On 5/9/05, Vamsi_Doddapaneni <[EMAIL PROTECTED]> wrote:
I am facing a new problem.
Here is the code part: foreach $name(`ls $opt_i/*.xml`){ chomp; push @f, $name; print "pushing elements=$name\n"; } [EMAIL PROTECTED];
perldoc opendir
something like...
opendir(DIR,$opt_i) || die "$opt_i $!";
my (@f) = (grep {$_=~ m/\.xml$/} readdir(DIR)) {
closedir(DIR);