The split function seems the simplest approach to me:
#! /usr/bin/perl while(<DATA>) { my @field = split " ", $_; print "Field 2 => ",$field[1], "\n"; } __DATA__ ID SP96_DICDI STANDARD; PRT; 600 AA.
And the output is:
C:\scripts>perl field_split.pl Field 2 => SP96_DICDI
In reply to Re: A maybe rather silly question...
by dwm042
in thread A maybe rather silly question...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |