matt1776
08-03-2006, 01:45 PM
ive got an issue having to do with logic. I need to find a count of the images i download from an ftp server. The way i structured my code ive made it hard on myself to get a count.
I have:
a subroutine with a loop. Inside that loop is where I call another subroutine. Inside that subroutine is another loop where i actually download the images. How do i count these, return the count to the previous sub and return that count to the top level where i can print out (at the end of execution) how many images were downloaded? ive tried doing something like this $count .= blabla
but this only exponentially increased the results.
I have:
a subroutine with a loop. Inside that loop is where I call another subroutine. Inside that subroutine is another loop where i actually download the images. How do i count these, return the count to the previous sub and return that count to the top level where i can print out (at the end of execution) how many images were downloaded? ive tried doing something like this $count .= blabla
but this only exponentially increased the results.