Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

what does $0 mean ?

0 views
Skip to first unread message

Markus Tervooren

unread,
Aug 9, 2001, 10:10:28 PM8/9/01
to
i saw it in some scripts


Godzilla!

unread,
Aug 9, 2001, 10:26:27 PM8/9/01
to
Markus Tervooren wrote:

> i saw it in some scripts

Have you considered investing five minutes of
your time into discovering what is $0? I have
yet to read or hear any evidence, learning is
harmful to a person.


#!perl

# Godzilla Rocks!

open (FILEHANDLE, $0);

while (<FILEHANDLE>)
{ print $_; }

close (FILEHANDLE);

exit;

Godzilla!


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----

John J. Trammell

unread,
Aug 9, 2001, 11:31:12 PM8/9/01
to
On Fri, 10 Aug 2001 04:10:28 +0200, Markus Tervooren wrote:
> i saw it in some scripts

This is documented in the "perlvar" section of the standard Perl
documentation.

--
[W]hen the manager knows his boss will accept status reports without
panic or preeemption, he comes to give honest appraisals.
- F. Brooks, _The Mythical Man-Month_

Zachary Kent

unread,
Aug 19, 2001, 12:16:06 AM8/19/01
to
If you ever see "Godzilla!" responding to your post, JUST SKIP IT!

"Godzilla!" <godz...@stomp.stomp.tokyo> wrote in message
news:3B734653...@stomp.stomp.tokyo...

0 new messages