[EMAIL PROTECTED] (Randal L. Schwartz) writes:

>>>>>> "reader" == reader  <[EMAIL PROTECTED]> writes:
>
> reader> The output I'm getting is a relative name, and that is what I've fed
> reader> the find function.  But still the docu seems to indicate it will
> reader> return the absolute (`complete' as above) file name.
>
> No, "complete" is not "absolute".  It means "complete", relative
> to where the search started.  If you gave "." as a starting point,
> for example, it'll usually begin with "./some/dir/path".  If you
> need "absolute", consider the Cwd module.

Thanks... yeah I can see how that is the meaning in the docu now.
Just a little confusing since the example given is an absolute name,
and then the word `complete' is applied to the example.

I was using `use Cwd 'abs_path'; at first but someone said it
shouldn't be necessary... turns out it is, unless user gives absolute
names to File::Find.  Apparently because File::Find cds to source
directories to do its work.

At least that seem to be the problem with the script under discussion
in  Subject: Was `readdir [...]' Comments on JK's script.

If absolute filenames are not given on the command line then the
script fails.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to