<?xml version="1.0" encoding="windows-1252"?>
<node id="5170" title="Re: Are there argc and argv type functions in perl" created="2000-03-10 17:41:04" updated="2005-07-19 14:08:39">
<type id="11">
note</type>
<author id="2675">
btrott</author>
<data>
<field name="doctext">
No such thing as $ARGC, as far as I know.&lt;p&gt;

But yes, you can use @ARGV to get the command line
args. Something to be aware of is that

&lt;code&gt;
$ARGV[0]
&lt;/code&gt;

is not the command name; it's the first argument.&lt;p&gt;

Also, check out the Getopt family of modules for
automatically parsing your command line args:

&lt;code&gt;
perldoc Getopt::Std
perldoc Getopt::Long
&lt;/code&gt;

and more.</field>
<field name="root_node">
5163</field>
<field name="parent_node">
5163</field>
</data>
</node>
