Urgent

From: Lktee (lktee_at_bantex.com.my)
Date: 05/29/04


To: "'John W. Krahn'" <krahnj@acm.org>
Date: Sat, 29 May 2004 13:15:12 +0800


Other command can instance? Because after try still no work.

-----Original Message-----
From: John W. Krahn [mailto:krahnj@acm.org]
Sent: Thursday, May 27, 2004 9:37 AM
To: beginners@perl.org
Subject: Re: How to find same filename in subdirectory

 
> 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.

Perhaps you want this instead:

print "$File::Find::name\n" if /File1$/;

John

-- 
use Perl;
program
fulfillment
-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Relevant Pages

  • Re: determine default filename encoding
    ... > Suse tech support for the way filename characters are represented, ... Characters are characters - just bytes. ... Then if that coding differed from the LANG coding ... filenames that were written in encoding X as they were written, ...
    (comp.os.linux.setup)
  • Re: SED1335 Problem
    ... using the "command byte+stream of data bytes" method. ... a problem occurs where an additional 8 pixels can be written on ... I know this looks like a silly coding error, ... It happens far far less frequently if I write my bitmap rows with ...
    (comp.arch.embedded)
  • Re: SED1335 Problem
    ... a problem occurs where an additional 8 pixels can be written on ... I know this looks like a silly coding error, ... It happens far far less frequently if I write my bitmap rows with "command ...
    (comp.arch.embedded)
  • Re: SED1335 Problem
    ... a problem occurs where an additional 8 pixels can be written on ... I know this looks like a silly coding error, ... It happens far far less frequently if I write my bitmap rows with "command ...
    (comp.arch.embedded)
  • Re: Deleting files
    ... "John John" wrote: ... From a Command Prompt use the subst command, ... Once done you can just delete the substituted drive, that will not delete your folder, it will only remove the virtual drive associated to the folder. ...
    (microsoft.public.windowsxp.newusers)