in reply to Re: Parse tag-delimited input file
in thread Parse tag-delimited input file

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 ... ...

Replies are listed 'Best First'.
Re^3: Parse tag-delimited input file
by holli (Abbot) on May 27, 2005 at 14:33 UTC
    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/