<?xml version="1.0" encoding="windows-1252"?>
<node id="1008284" title="Re: create gagillian files in current directory" created="2012-12-11 06:48:56" updated="2012-12-11 06:48:56">
<type id="11">
note</type>
<author id="540414">
jwkrahn</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;&lt;c&gt;
#!/usr/bin/Perl
&lt;/c&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;p&gt;
perl (and *nix) are case sensitive so that is usually spelled:
&lt;/p&gt;
&lt;c&gt;
#!/usr/bin/perl
&lt;/c&gt;&lt;br /&gt;&lt;br /&gt;



&lt;blockquote&gt;&lt;i&gt;&lt;c&gt;
    open(FILE1,$file1);
&lt;/c&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;p&gt;
You should verify that the file opened correctly:
&lt;/p&gt;
&lt;c&gt;
    open FILE1, '&lt;', $file1 or die "Cannot open '$file1' because: $!";
&lt;/c&gt;&lt;br /&gt;&lt;br /&gt;



&lt;blockquote&gt;&lt;i&gt;&lt;c&gt;
if (($filename eq "") || (defined $filename eq 'false')) {
&lt;/c&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;p&gt;
[doc://defined] &lt;c&gt;$filename&lt;/c&gt; will never be &lt;c&gt;eq&lt;/c&gt; to the string &lt;c&gt;'false'&lt;/c&gt;
&lt;/p&gt;
</field>
<field name="root_node">
1008229</field>
<field name="parent_node">
1008229</field>
</data>
</node>
