Re: What is the global hash %_ ?



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.


John
--
use Perl;
program
fulfillment
.



Relevant Pages

  • Language problem with knoppix
    ... package it gives the error message On Language Like: ... perl: warning: Setting locale failed. ...
    (Debian-User)
  • Re: What is the global hash %_ ?
    ... no warning is issued when using it without a package name, ... 'my' is allowed on that var; the problem is that I could not find it ... oh and _ the special filehandle for stat. ...
    (comp.lang.perl.misc)
  • What is the global hash %_ ?
    ... I've seen that %_ is treated as a special variable in Perl, ... no warning is issued when using it without a package name, ... and whether it is safe to use it? ...
    (comp.lang.perl.misc)
  • Re: What is the global hash %_ ?
    ... ozarfreo@xxxxxxxxx schreef: ... no warning is issued when using it without a package name, ... 'my' is allowed on that var; the problem is that I could not find it ...
    (comp.lang.perl.misc)
  • Cannot install clvm
    ... After I installed clvm package by apt-get I got this error... ... perl: warning: Setting locale failed. ...
    (Ubuntu)