in reply to Retrieve path from file handle?

I'd use print "c:/data.txt";

But seriously ... why not use a variable to hold the filename and print that out?

my $filename = "c:\data.txt"; open FH, $filename or die "Can't open $filename:$!\n"; print "The file is $filename\n";

It's very useful indeed.

Philosophy can be made out of anything. Or less -- Jerry A. Fodor