<?xml version="1.0" encoding="windows-1252"?>
<node id="995465" title="Re^3: Test::More command-line arguments?" created="2012-09-24 20:24:04" updated="2012-09-24 20:24:04">
<type id="11">
note</type>
<author id="757127">
tobyink</author>
<data>
<field name="doctext">
&lt;p&gt;&lt;c&gt;prove&lt;/c&gt; does not pass on arguments to the test files. &lt;c&gt;prove&lt;/c&gt; assumes that you're trying to run test cases called "one", "two" and "three".&lt;/p&gt;
&lt;p&gt;If you need to provide arguments to a test file, you need to run it with &lt;c&gt;perl&lt;/c&gt;, not &lt;c&gt;prove&lt;/c&gt;:&lt;/p&gt;
&lt;code&gt;
$ perl t.t one two three
&lt;/code&gt;
&lt;p&gt;If you really want to use &lt;c&gt;prove&lt;/c&gt; then perhaps modify your test file to read its options from &lt;em&gt;environment variables&lt;/em&gt; instead.&lt;/p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-757127"&gt;
&lt;small&gt;&lt;small&gt;
&lt;tt&gt;perl -E'sub Monkey::do{say$_,for@_,do{($monkey=&amp;#x5B;caller(0)]-&gt;&amp;#x5B;3])=~s{::}{ }and$monkey}}"Monkey say"-&gt;Monkey::do'
&lt;/tt&gt;&lt;/small&gt;&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
995459</field>
<field name="parent_node">
995462</field>
</data>
</node>
