RE: How to find files in subdirectory

2004-05-25 Thread Jan Eden
LKTee wrote on 25.05.2004: >Hi, after refer the File::Find, I write the script below: > >#!/usr/bin/perl >use warnings; >use strict; >use File::Find; >find ( \&callback, "/") ; > >sub callback{ > print $File::Find::name, "\n"; >} > >but this script will list all the filename, from the disk. So,

RE: How to find files in subdirectory

2004-05-25 Thread LKTee
RE: How to find files in subdirectory Check the documentation for the File::Find module. It comes standard with most Perl distributions. -Original Message- From: LK Tee [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 6:52 PM To: '[EMAIL PROTECTED]' Subject: How to find fi

RE: How to find files in subdirectory

2004-05-12 Thread Tim Johnson
Check the documentation for the File::Find module. It comes standard with most Perl distributions. -Original Message- From: LK Tee [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 6:52 PM To: '[EMAIL PROTECTED]' Subject: How to find files in subdirectory Hi, I'm

How to find files in subdirectory

2004-05-12 Thread LK Tee
Hi, I'm perls beginner now, I have a problem when create a script find all file in subdirectory that have the same filename. How I write the script using perl and return the result like below: File1: ~/A/File~/A/AA/file1 ~/A/C/CC/CCC/file Kuan.