At 12:05 pm +1030 6/11/02, Paul McCann wrote:

On Tue, Nov 05, 2002 at 09:26:01PM +0000, John Delacour wrote:
 > I've a feeling I'm doing something silly here

What's that extra "\n" doing on the end of each element of the
@accounts array? It'll be still present when you try to use the
element to open up the directory, leading to a "file not found" error.
So either strip that or just change the line

$acc =  $accounts[0] ;

to read

chomp($acc = $accounts[0]);

and you should be fine.
Aah! My best guess was right -- I was doing something silly. That new line was only for testing purposes as I built the script.

Thanks Paul and Ken for the help.

JD

Reply via email to