How about this instead? You are correct in your observation of the open statement in my sample. In my hurry to clean it up I removed all literal filenames and handles so as not to obfuscate the issue.

The FH has been cleaned up to:

open (my $FILE, 'c:/test/ldif.ldf') || die "can't open 'ldif.ldf': $!";

open (my $OUTPUT_FILE, '>export.txt') || die "can't open 'export.txt': $!";

open (my $FILE1, 'c:/test/some.csv') || die "can't open 'some.csv': $!";

The reality of your comment is that it is more than a bit anal, but I do understand the need for clarity in these matters and I do appreciate the candid response.

Sometimes we don't have the time we need to make things pretty.

In reply to Re^4: Passing 2 elements into a new associative array by contrite_newbie
in thread Passing 2 elements into a new associative array by contrite_newbie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.