A
Aman
Hello everyone,
I am new to perl and I am trying to split a line but can't seem to get
it to work. Basically, the line is made up of multiple whitespaces.
An example of a line is as follows and I want to split it into
variables.
1 1 808748 1081461 0 0 0 1 3 0 744 1190 850 0 1 98 1
I tried using the following
($r,$b,$avm)=split(/\s/,$line);
to split the first 3 rows but it does not work. Any ideas on how to
accomplish this ? Ideally I would like to split each col. into a
variable. Any help will be appreciated. Thank
Aman
I am new to perl and I am trying to split a line but can't seem to get
it to work. Basically, the line is made up of multiple whitespaces.
An example of a line is as follows and I want to split it into
variables.
1 1 808748 1081461 0 0 0 1 3 0 744 1190 850 0 1 98 1
I tried using the following
($r,$b,$avm)=split(/\s/,$line);
to split the first 3 rows but it does not work. Any ideas on how to
accomplish this ? Ideally I would like to split each col. into a
variable. Any help will be appreciated. Thank
Aman