I've got a bunch of symlinks in a directory which (intentionally) don't have as much info in the filename as the original files. I need to find out the name of the original file, but I can't see how to do this in perl. I also would like to make the solution as portable as possible (it may have to run on windows)
I can see a similar topic came up in the
Broken symlinks discussion, but the only solution that displayed the destination links was using
perl2find and wasn't portable.
I've had a bit of a poke around on cpan, but I can't see anything appropriate, and I'd rather not use a non-standard lib anyway.
Does anyone have any suggestions?