help

in my datafile :
a=1
b=2
c=4
d=5
i opened the file n placed the data into @data
how can i create a $data which is equal to "a=1|b=2|c=4|d=5" from
the @data ?
thanx
prinxAsked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
chomp @data;
$data = join'|',@data;
0
 
Kim RyanIT ConsultantCommented:
$data = join('|',@data);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.