ok - let me start with, I did not completely understand the original regex's and your explanation helped me there. I changed the $delimiter section as you suggested.

My goal was to capture all fields implied in a tab-delimited line, as in something that would do the right thing when given this:

aabel Allyn Abel EL0 20030612182307 10.5.4.166 abeeman Ali Beeman EL1 ajens@ttsd.k12.or.us 200309 +02191509 10.8.0.219

There are actually 8 fields in both lines, based on the tabbing.

The problem with the previous code (sans the '| ($delimiter)' ) was that when I specified '\t' as a field seperator, the regex did not recognize multiple tabs correctly.

Ugh. and now that i go off and test this with the original module (because I was going to show you the problem exactly..), its working with the original regex. *sigh*

Perhaps reading Text::ParseWords caused me to clean up some code elsewhere that was causing the issue.

Thanks for taking the time to read through this.


In reply to Re: Re: small change - evil consequences? by selena
in thread small change to Text::ParseWords - evil consequences? by selena

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.