in reply to What is using $_ ?

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^2: What is using $_ ?
by Jenda (Abbot) on Dec 28, 2007 at 00:09 UTC

    That's not really true. Quite a few (more or less) OO languages have something conceptualy very similar. A "with object" construct. Something like

    with (some expression returning object) .method1(params) .method2(params) .method2(params) end with
    That's conceptualy very close to $_. It's also a way to save keystrokes by assigning a value to a special variable/construct if you want to use it a few times in a row. Perl just takes this a little further. And ... no matter what trolls say ... it works.