in reply to Parse tag-delimited input file

like this?

If not, show us sample input.


holli, /regexed monk/

Replies are listed 'Best First'.
Re^2: Parse tag-delimited input file
by icg (Acolyte) on May 27, 2005 at 14:13 UTC
    Input file looks like this: AN 0005 SR SI CO Me GH EL ub.com UR http://www.xxx.com MA Me Gm Output should be like this: AN 0005 SR CO Me GH ... ...
      use strict; use warnings; my $input = "AN 0005 SR SI CO Me GH EL ub.com UR http://www.xxx.com MA + Me Gm"; my @input = split / +/, $input; print "@input[0..2,4..6] ... ..."; #AN 0005 SR CO Me GH ... ...


      holli, /regexed monk/