RE:How to find same filename in subdirectory
lktee_at_bantex.com.my
Date: 05/26/04
- Next message: John Pretti: "SCP help"
- Previous message: Wiggins D Anconia: "Re: Need help in building a pl to a pm"
- Next in thread: Jan Eden: "RE:How to find same filename in subdirectory"
- Reply: Jan Eden: "RE:How to find same filename in subdirectory"
- Reply: John W. Krahn: "Re: How to find same filename in subdirectory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 May 2004 23:00:33 +0800 To: krahnj@acm.org
Hi, John thanks you comment, the coding is work. But i'm detect have some small
problem in line 7 print "$File::Find::name\n" if $_ eq 'File1'; I test as below
sample 2 is follow you coding. From here i detect nothing return from script.
But after i amend the coding become print "$File::Find::name\n" if $_ = 'File1';
this work and return the result i expected. But why perl show "Found = in
conditional, should be == at ./callback line 7."? Any idea? I try put "==" to
replace "=", the result return like sample 2.
Sample 1
[root@localhost root]# ./callback
Found = in conditional, should be == at ./callback line 7.
what directory want search?perl
Yes, perl is a directory.
perl
perl/perl1
perl/123
perl/bash
perl/bash/perl1
perl/bash/123
Sample 2
[root@localhost root]# ./callback
what directory want search?perl
Yes, perl is a directory.
[root@localhost root]#
- Next message: John Pretti: "SCP help"
- Previous message: Wiggins D Anconia: "Re: Need help in building a pl to a pm"
- Next in thread: Jan Eden: "RE:How to find same filename in subdirectory"
- Reply: Jan Eden: "RE:How to find same filename in subdirectory"
- Reply: John W. Krahn: "Re: How to find same filename in subdirectory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|