I have a file. I am opening it. My fancy filename does not feel like the issue, since the output from the snippet below is:
reading movement file in
I have evaled the input

However, I would also like to see the input. I would like it evaled! I don't even get out from the second print. I certainly am not benefitting from the eval (which will assign some wonderful values to some local variables-- the values having been Data::Dumper->Dump'ed previously).

I have tried many variations on this theme using foreach and while with the . operator. I can look at the file and it's wonderful. I added "or print 'error'" statements to my read statements and get nothing. Once I did manage to get it to print out the first line of the file, but that's it. Any idea what simple thing(s) I'm doing wrong here?
if( open( MVMT, "< $Config{'temp_data_file'}_$Config{'current_period'} +" )) { print "reading movement file in\n"; my $input; undef $/; $input = <MVMT>; close MVMT; print "input: $input\n"; eval $input; print "I have evaled the input\n"; }

In reply to Why can I kind of read this file? by ichimunki

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.