RE: Whimsical Question




I am with Ryan been working with Perl for some months now
And I have never found a name for '$_', some of my friends
They just call it scalar but that's too general for it
If someone knows please tell


Thanks


Armando Gomez Guajardo
Process Engineer
Work Ph 956 547 6438
Beeper 956 768 4070

-----Original Message-----
From: Chad Perrin [mailto:perrin@xxxxxxxxxxxx]
Sent: Wednesday, March 29, 2006 7:47 AM
To: beginners@xxxxxxxx
Subject: Re: Whimsical Question

On Wed, Mar 29, 2006 at 08:03:24AM -0500, Ryan Frantz wrote:
Perlers,

I just got a copy of Intermediate Perl (the updated version of
Learning Perl Objects, References, and Modules, aka Alpaca) and
started reading.
I've been coding Perl for about 18 months now and every time I see
'$_'
I immediately understand its use in the context of the code, but I
don't know its name. I realized this after reading over example code
in the Alpaca and it got me to wondering: _Is_ there a name for '$_' ?

For example, when I see '#!', I read 'shebang' and it rolls off the
tongue, but 'dollar underscore' is clumsy. Does anyone know if a name
exists?
If not, do any of you have pet name for it?

I know this is a whimsical (and possibly esoteric) question but I
figured it might generate some fun threads.

I tend to call it "implicit scalar".

--
Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "A script is
what you give the actors. A program is what you give the audience." -
Larry Wall

--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx For additional
commands, e-mail: beginners-help@xxxxxxxx <http://learn.perl.org/>
<http://learn.perl.org/first-response>

.



Relevant Pages

  • [perl-python] 20050121 file reading & writing
    ... # reading the one line ... # proper in large programs. ... # or in Python terminal, ... # in perl, similar functionality exists. ...
    (comp.lang.perl.misc)
  • [perl-python] 20050121 file reading & writing
    ... # reading the one line ... # proper in large programs. ... # or in Python terminal, ... # in perl, similar functionality exists. ...
    (comp.lang.python)
  • Re: Perl 5.8.0
    ... I don't know about the others, but my mind reading skills are minimal and ... Cannot find the core of Perl library. ... Everything else lives in the \perl tree. ... are in PATH or LIBPATH. ...
    (comp.os.os2.programmer.tools)
  • opening a file for reading
    ... I am trying to open a file for reading but it does not work. ... # Array containing lines from the interface file ... binmode; # Grab binary data ... folder as the perl script. ...
    (perl.beginners)
  • Re: rename userid in passwd, shadow, group
    ... > SUBSTITUTE that $field in the passwd, shadow and group file. ... If so, Perl would have told ... > if ($ARGV eq "passwd"){ ... it will try reading from standard ...
    (comp.lang.perl.misc)