in reply to what about System.gc

You're likely looking at a script not written in or for Perl. If you use warnings, Perl will tell you what it sees instead:

perl -we "System.gc" Useless use of a constant in void context at -e line 1.

What Perl sees here is the concatenation of two bareword strings:

perl -we "print System.gc" Unquoted string "gc" may clash with future reserved word at -e line 1. Systemgc

Perl has no garbage collector, as it uses reference counting only.

Replies are listed 'Best First'.
Re^2: what about System.gc
by kaif (Friar) on Jun 28, 2005 at 12:28 UTC

    Indeeed, the code is likely Java.

Re^2: what about System.gc
by dominix (Deacon) on Jun 28, 2005 at 09:32 UTC
    lol, thanks Corion.
    I learn about perl everyday and so I was too curious what this was about, to think it was not Perl. :)
    thanks for the quick response.
    --
    dominix