Fian has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
(jeffa) Re: @INC, $_, $!????????
by jeffa (Bishop) on May 22, 2001 at 20:28 UTC
    Those 'Special wotsits' you reffer to are actually very usefull (and intimidating at first glance) variables that are available to you - think of them as 'built-in' variables that exist in every program you write.

    For example, @INC is an array that contains all the paths on your system that Perl will search to find any modules you have included, such as use CGI;

    All these special variables are listed at perlvar.

    Jeff

    R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
    L-L--L-L--L-L--L-L--L-L--L-L--L-L--
    
Re: @INC, $_, $!????????
by TGI (Parson) on May 22, 2001 at 20:55 UTC

    If you are partial to tree-jerky, Perl In A Nutshell has a very handy list. It actually has a lot of handy lists, but just one of special wotsits.


    TGI says moo

Re: @INC, $_, $!????????
by gregor42 (Parson) on May 22, 2001 at 22:42 UTC

    Indeed. Pages 49 - 54 of PERL5 Pocket Reference - Johan Vromans lists every single one of them. $US 6.95 $CAN 9.95 ISBN 1-56592-495-9 ... I quote

    @ARGV - Contains the command-line arguments for the script (not includ +ing the command name [like in C], which is in $0). [...] $_ - Alternative: $ARG The default input, output, and pattern-searching space. [...] $! - Alternative: $OS_ERROR, $ERRNO Used in a numeric context, yields the current value of errno. Used in + a string context, yields the corresponding error string.

    I hope you find that helpful.



    Wait! This isn't a Parachute, this is a Backpack!