Hi,
i need a help to do program.i need to read multiple files and need to print out result in to new file.I had stored my datas in mycomputer/programs(G:)/CNV/(inside this i have 4 folder and each folder consits of number of datas...) plz give me perl script to do this
anunitha
Recommended Answers
Jump to PostThe File::Find module process the multiple sub directories.
use strict; use warnings; use File::Find; my $root_path=qq{G:/CNV}; #Declare your input path # Recursively it process all the sub directories in $root_path find(\&process_multiple_dir, $root_path); sub process_multiple_dir { if (-f && $File::Find::name =~ m{\.txt$}) # It process .txt format files …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.