Nishi Bhonsle wrote: > Hi: > > Can you please help me write a perl script that takes the files from a > directory and spits out the filenames into a file. > say. > I have a file structure on a file system such as > C:\Temp\one > C:\Temp\two > C:\Temp\one\oneone > C:\Temp\one\onetwo > C:\Temp\one\onethree > > The original file contains lines in the foll format -- > "SL/" "%HOME%/server/bin/" "" NA > > This original file will be updated by the perl script to contain the > filenames in the foll manner -- > "SL/one" "%HOME%/server/bin/one" "one" NA > "SL/oneone" "%HOME%/server/bin/oneone" "oneone" NA > "SL/onetwo" "%HOME%/server/bin/onetwo" "onetwo" NA > etc > > Please help. > > Thanks a lot! >
See `perldoc File::Find` and `perldoc File::Basename` -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>