http://qs321.pair.com?node_id=700641

lil_v has asked for the wisdom of the Perl Monks concerning the following question:

hey, I'm trying to split a line of numbers into an array. It seems that the whole line gets transfered to the first element in the array. I want it to seperate into different elements. Here is my code:
$line = " 0 10 9 4 1 0 0 0 2 2 1 1 0"; my @config = split /" "/,$line; $first = $config[0]; print $first;
I'm guessing the way i'm using split may be wrong.