Ok. This writeup has particlarly interested me. However, there are a few things that are really 'fusing me.

Is it me or is this snippet of code broken? I don't see how you can get an accurate answer from if (@lines == 1) {....

@lines = split(/\n/, $para); if (@lines == 1) # A Heading { $lastHeading = $lines[0]; next; }

The if-then would always return false and therefore $lastHeading would never get substituted, right? What am I missing?

Next, I am still not positive what the author wants which is probably just my interpretation of the question. Brassmon_k don't take anything I write here personal. I am just asking for my own clarification. I want to help because I find this topic near and dear to my work =P. I work for a telco and deal with this kind of stuff alllll the time. Never done wireless though.
I see that you want call information but I think I am missing how you want to extract this information and what you're grabbing this information from. I have a snippet of code I wanted to present but it works more along the lines of sucking a file (record file) in and spitting out all the lines containing the information I believe you want (not done yet, just grabs all lines with Cell right now). It places every line occurrence into an array and then every 2 lines into another array to seperate first and last cell. BUT, it seems this is not what you want in terms of your desired output, so I am a little lost on the question I think. Thank goodness the other monks could get ya. :) I am finding your question to be jumpy and for me it is not entirely understandable. I should clarify that I KNOW you want to actually get the information extracted from the lines containing 'Cell' in them and if I can get further personal clarification on this I can then tweak what I have so far and present it if you'd like.

----------
- Jim


In reply to Re: Can I match a range from an array? by snafu
in thread Can I match a range from an array? by brassmon_k

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.