in reply to Re^3: Assigning values. Simple and Nasty one.
in thread Assigning values. Simple and Nasty one.

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^5: Assigning values. Simple and Nasty one.
by pearlie (Sexton) on Apr 20, 2005 at 05:45 UTC
    Hello,
    1)Do you have some spaces in the text file you are reading?
    2) Please do not use the variables $1 and $2.
    3) Use split as mentioned in my previous post also:
    my @arr = split(/ /,$line); print "col1: $arr[0] col2: $arr[1] \n";
    inside the while loop. This should solve the purpose.
    Hope this time it works for you.
Re^5: Assigning values. Simple and Nasty one.
by NateTut (Deacon) on Apr 19, 2005 at 14:10 UTC