in reply to ssh/scp most recent file?

obviously you will use one of the above options Net::SSH works well for me to execute a remote operation ... then the best way I have found is ...

#!perl my $dir = "/home/foogod"; my @array = `ls -ut $dir`; print "$array[0]";

This will print the latest modified/created file ...

- f o o g o d