<?xml version="1.0" encoding="windows-1252"?>
<node id="1007729" title="Re: Putting a filename as a parameter to a perl script then reading from it in the code?" created="2012-12-07 07:39:10" updated="2012-12-07 07:39:10">
<type id="11">
note</type>
<author id="681898">
Utilitarian</author>
<data>
<field name="doctext">
ICL VME, &amp;gt;shudder&amp;lt;that brings back memories...&lt;br/&gt;
$ARGV[0] is the first paramter supplied to your script.&lt;br/&gt;
When you have to parse a common file format, the first response should be to search CPAN (or for a faster response, metacpan.org)for the format, there you will discover [mod://Text::CSV] a module which handles all the edge cases that may arise in your data.&lt;p&gt;
Welcome to Perl, you'll find it much handier to script in than scl once you get the hang of it...&lt;p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-681898"&gt;
&lt;c&gt;print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."&lt;/c&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1007712</field>
<field name="parent_node">
1007712</field>
</data>
</node>
