in reply to Re^3: Get filename of STDOUT
in thread Get filename of STDOUT

perl -e "print $0" prints -e. Oops, silly me! perl test.pl prints test.pl where test.pl is print $0;.
>perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2001, Larry Wall Binary build 633 provided by ActiveState Corp. http://www.ActiveState. +com Built 21:33:05 Jun 17 2002