<?xml version="1.0" encoding="windows-1252"?>
<node id="980592" title="Re: calling a subroutine from another subroutine" created="2012-07-08 12:33:58" updated="2012-07-08 12:33:58">
<type id="11">
note</type>
<author id="20250">
pemungkah</author>
<data>
<field name="doctext">
As a minor point: this
&lt;code&gt;
my $usage       = "
Usage: $scriptname (-type&lt;type&gt; -OIMID &lt;oimid&gt; -version &lt;version_number&gt; -out &lt;filename&gt;  ) 
           -type &lt;type&gt;              :A|B
          -version &lt;version_number&gt;  :Required.Minimum Security Version Number.
       -OEMID &lt;oemid&gt;             : Required.
       -out &lt;filename&gt;          : Required.              
          
";
&lt;/code&gt;
could be a heredoc, which would make it easier to lay it out nicely:
&lt;code&gt;
my $usage = &lt;&lt;USAGE;
Usage: $0 -type[A|B] -OEMID id -version nnnn -out filename
 
 where
     version: minimum security version (integer)
     OEMID:   one of the OEM IDs fron (source here...)
     out:     name of any writable file

USAGE
&lt;/code&gt;

I altered the usage to conform to the more-often used standards from man pages, but you can use whatever makes sense to your users. The point is that it was easy for me to line things up because I'm writing it down exactly the way it will appear when it's printed.
&lt;p&gt;
You might also consider just printing to STDOUT instead of forcing an output file; that way your script could, for instance, pipe into grep or sort.</field>
<field name="root_node">
980363</field>
<field name="parent_node">
980363</field>
</data>
</node>
