in reply to Regex to match a line

Here's a split example:

my( @match_A ) = split /\t/, $line;

Just a matter of using the right tool for the job.


Dave

Replies are listed 'Best First'.
Re^2: Regex to match a line
by izut (Chaplain) on Feb 03, 2006 at 17:24 UTC
    Then you could verify if there are enough items on array:
    if ($#mach_A < 41) { # Less columns than expected. warn "Line has less columns than expected."; }

    Igor 'izut' Sutton
    your code, your rules.

    A reply falls below the community's threshold of quality. You may see it by logging in.