Re: What is the global hash %_ ?
- From: Kevin Michael Vail <kevin@xxxxxxxxxx>
- Date: Tue, 18 Jul 2006 00:25:33 GMT
In article <RHUug.110583$I61.73488@clgrps13>,
"John W. Krahn" <someone@xxxxxxxxxxx> wrote:
ozarfreo@xxxxxxxxx wrote:
I've seen that %_ is treated as a special variable in Perl, as $_ and
@_ are: no warning is issued when using it without a package name, no
'my' is allowed on that var; the problem is that I could not find it
among Perl's documentation.
I'd like to use it in a program but am not sure whether I might be
interfering with some other intended use for %_ . Can someone point out
what is this variable exactly, and whether it is safe to use it?
If it is not listed in perlvar then perl doesn't care what you do with it.
It probably only comes along because it's in the same glob as $_ and @_,
oh and _ the special filehandle for stat.
Personally, if someone can come up with a syntax for the call, it'd make
a great place to put named function parameters.
--
boss, sometimes i think | kevin michael vail
that our friend mehitabel | kevin@xxxxxxxxxx
is a trifle too gay |
-- archy | wotthehell wotthehell
.
- References:
- What is the global hash %_ ?
- From: ozarfreo
- Re: What is the global hash %_ ?
- From: John W. Krahn
- What is the global hash %_ ?
- Prev by Date: Re: What is the global hash %_ ?
- Next by Date: FAQ 1.5 What is Ponie?
- Previous by thread: Re: What is the global hash %_ ?
- Next by thread: Re: What is the global hash %_ ?
- Index(es):
Relevant Pages
|
|