Hello,
I have a small problem. Again lemme state this is not homework, but an assignment for my boss. He wants me to take 3 files, and combine the last lines of them in a table. The files follow this format:
 Fri Oct 13 2000 20:11:54                                              Page  1

Weekly Stats for DE-NJ-MD sites

 RF Block | DCCH Block | Disp Queue | RF Drop | Erl/BR |
   1.40 % |    0.24 %  |    1.39%   |   2.04% |   2.35 |
The problem is, when i open the file and load it into an array, for somereason, the array shows up blank. Here is part ofmy code incase i am doing something wrong:
$site_dnm = "/mnt/csphil/home/fburns/domereports/Weekly_Reports/de-nj- +md"; $site_pa = "/mnt/csphil/home/fburns/domereports/Weekly_Reports/pa_only +"; $site_pm = "/mnt/csphil/home/fburns/domereports/Weekly_Reports/phila_m +arket"; # ------ Read files #read De-Nj-Md open($site_dnm); @DNM = <$site_dnm>; close($site_dnm); #read PA open(pa, $site_pa); @PA = <pa>; close(pa); #read in lat and long file open(LL, $site_pm); @PM = <PM>; close(PM);

Thank you very much
Dipul Patel

In reply to opening a file by ImpalaSS

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.