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
In reply to Re: Retrieve path from file handle?
by arturo
in thread Retrieve path from file handle?
by tenya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |