D
dima
Hello All!
I have following problem:
The file contain structured lines
AAAAA BBBBB CCCCC DDDDD
AAAAA BBBBB CCCCC DDDDD
AAAAA CCCCC DDDDD
AAAAA BBBBB CCCCC DDDDD
AAAAA BBBBB DDDDD
BBBBB CCCCC DDDDD
AAAAA BBBBB CCCCC DDDDD
I want save info into hash
For example for third line
$hash{one} = AAAAA
$hash{two} = undef
$hash{three} = CCCCC
$hash{four} = DDDDD
I know how do that using substr(), but this is not very elegantly!
Using regular expressions or split is inpossible, because lines contain
empty elements!!!
What solution is optimal for me???
Maybe any CPAN modules???
I have following problem:
The file contain structured lines
AAAAA BBBBB CCCCC DDDDD
AAAAA BBBBB CCCCC DDDDD
AAAAA CCCCC DDDDD
AAAAA BBBBB CCCCC DDDDD
AAAAA BBBBB DDDDD
BBBBB CCCCC DDDDD
AAAAA BBBBB CCCCC DDDDD
I want save info into hash
For example for third line
$hash{one} = AAAAA
$hash{two} = undef
$hash{three} = CCCCC
$hash{four} = DDDDD
I know how do that using substr(), but this is not very elegantly!
Using regular expressions or split is inpossible, because lines contain
empty elements!!!
What solution is optimal for me???
Maybe any CPAN modules???