On Thursday, May 23, 2002, at 01:45 , Torres, Jose wrote:
> what Perl function can I used to invoke something usually done at the
> command line?
> I want to execute:
>
> sum * > SNP/020405/foo.txt
>
> this will call checksum on everything and output to foo.txt in
> /SNP/020405.
> Problem is, the * will sum all files in the current directory, not those
> in
> SNP/020405.
you might want to think in terms of
Getopt::Std
to take command line arguments like
what dir to start in,
where to put the output file, probably best
not to put it in the directory path you are walking...
then consider using the
File::Finder
and write a fun 'call back' function that would do
the 'checksum' on files, but not on directories,
caching away the results into say a hash that
would trap things in a way that would be simple
for you to walk through later on....
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]