in reply to sequential file handling

or something like this should works
use strict; my @dir = qw{ dir1 dir2 dir3 }; my $target=shift(@dir); push(@dir,$target); print "$target\n";
plus your file copy

Replies are listed 'Best First'.
Re: Re: sequential file handling
by airblaine (Acolyte) on May 31, 2002 at 16:10 UTC
    Sorry, I didn't mention that this will have to be run from cron or timed every 5 minutes. That's the tricky part. So it will have to distribute the file from /main to /dir1 then 5 minutes later, /main to /dir2 etc. Should it be done by writing to and from a text file? I'm stumped. Thanks -Blaine