Re: Logging with Log::StdLog from within a package
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 19:36:55 +0100
Quoth Jerry Krinock <jerry@xxxxxxxx>:
Thank you, Ben. I used {*::STDLOG} and it works now.
But what is that {*FILEHANDLE} syntax mean to the perl interpreter? I
thought that there is no "*" operator in perl, and {} is used for code
blocks or hash assignments. Which, if any, perldoc?
*FOO is described in perldata, under 'Typeglobs and Filehandles', and
further elaborated on in perlmod. The print {...} syntax is documented
in perldoc -f print; it applies quite generally to any builtin or method
call that has an 'indirect object' slot. The block is required if you
want to put anything more complicated that a simple scalar there.
Ben
--
"If a book is worth reading when you are six, * ben@xxxxxxxxxxxx
it is worth reading when you are sixty." [C.S.Lewis]
.
- References:
- Logging with Log::StdLog from within a package
- From: Jerry Krinock
- Re: Logging with Log::StdLog from within a package
- From: Ben Morrow
- Re: Logging with Log::StdLog from within a package
- From: Jerry Krinock
- Logging with Log::StdLog from within a package
- Prev by Date: Re: FAQ 4.2 Why is int() broken?
- Next by Date: FAQ 4.23 How do I find matching/nesting anything?
- Previous by thread: Re: Logging with Log::StdLog from within a package
- Next by thread: Japanese Girl > Megumi Okina
- Index(es):
Relevant Pages
|