: I need to read a huge two column file; I only need the
: data from the second column; I need to asign it a
: variable to that column, for example $FILE, how do go
: about doing this; I appreciate your help.
How about:
while (<>) {
$FILE = (split)[1];
...
}
"split" by itself splits $_ on whitespace and returns a list of the
values. "[1]" gets the second value from the list (the first is 0).
--
Tim Kimball · ACDSD / MAST ¦
Space Telescope Science Institute ¦ We are here on Earth to do good to others.
3700 San Martin Drive ¦ What the others are here for, I don't know.
Baltimore MD 21218 USA ¦ -- W.H. Auden