Re: Reading a directory and Renaming the file

2003-10-30 Thread Sudarshan Raghavan
James Parsons wrote: Hi all I've this Perl script to read all files in a directory and if it finds a file with a certain then rename the file to header, but is doesn't search the right directory and doesn't even look for the HPAY header. Ops forgot to include the script. #!/usr/bin/perl -w

RE: Reading a directory and Renaming the file

2003-10-30 Thread Dan Muey
> Hi all > > I've this Perl script to read all files in a directory and > if it finds a file with a certain then rename the file to > header, but is doesn't search the right directory and doesn't > even look for the HPAY header. > What format are these "headers" in in the file? Assuming t

Reading a directory and Renaming the file

2003-10-30 Thread James Parsons
Hi all I've this Perl script to read all files in a directory and if it finds a file with a certain then rename the file to header, but is doesn't search the right directory and doesn't even look for the HPAY header. Ops forgot to include the script. #!/usr/bin/perl -w use strict; my $dir