in reply to Re: Re^3: Golf: Files Containing a Pattern
in thread Golf: Files Containing a Pattern
If EXPR is omitted, the scalar variable of the same name as the FILEHANDLE contains the filename. (Note that lexical variables--those declared with "my"--will not work for this purpose; so if you're using "my", specify EXPR in your call to open.) See the perlopentut manpage for a kinder, gentler explanation of opening files.
|
|---|