abubacker has asked for the wisdom of the Perl Monks concerning the following question:
Dear community,
How to get the name of the file inside the <> operator
for ex :
while ( <> )
{
print "name of the file :------ , line :$_ " ;
}
please help me to print the name of the file
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Get the file name inside the <> operator
by ikegami (Patriarch) on Aug 13, 2009 at 04:13 UTC |