What is an alternative for split in Perl?
Posted
by joe
on Stack Overflow
See other posts from Stack Overflow
or by joe
Published on 2010-05-20T07:52:20Z
Indexed on
2010/05/21
0:30 UTC
Read the original article
Hit count: 218
perl
My file contains
a: b
d: e
f: a:b:c
g: a
b
c
d
f:g:h
h: d
d:dd:d
J: g,j
How can I parse this file into lefthand side values into one array and right hand side to another array? I tried with split, but I am not able to get it back.
I want to store them into hash.
© Stack Overflow or respective owner