Solved

help

Posted on 2000-03-14
2
148 Views
Last Modified: 2010-03-05
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
0
Comment
Question by:prinx
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 100 total points
ID: 2619150
chomp @data;
$data = join'|',@data;
0
 
LVL 19

Expert Comment

by:Kim Ryan
ID: 2619154
$data = join('|',@data);
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now