Hey Marshal,
I've defiantly made some headway with the new simplified version that you gave me. But I just have one questions about it at the moment.
1. For the section in the code where it Dumps the raw records,
foreach my $line (@records)
{
(my $colnumber1, @rest) = split(' ',$line);
printf "%-8s @rest\n", $colnumber1;
}
how does the first line in the loop (one with the 'split' function) work?
I get that your creating and assigning 2 new variables, but how does it work setting one split function equal to 2 different variables (and 2 different types of variables)? By doing 2 print statements inside that loop, one fore each variable, I can see that:
$colnumber1 = either 'OWNER' -or- 'WAITING'
@rest = one whole line of data not including 'OWNER' or 'WAITING'
UPDATE
Came across one other question for the moment.
In the same file what does the line
if (!$current_owner) check for if $current_owner has no value? Or does it?
Thanks,
Matt
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.