my $localfile = "$csvdir/$astfile"; # No need to "join", and "/" works fine for windows too. -e $localfile or die "Error: '$localfile' does not exist"; # Existance verified - now we can "put" it