|
-
December 4th, 2008, 08:23 AM
#1
perl script to read from a file and put in a scalar variable
Hi,
I need to read the content of a file data.txt
into a variable...@temp.
I am getting both the values in $temp[0]...
can anyone help me??..
else i want it in a scalar variable like
$temp1= dat ata1 ---something like this...delimited by a delimiter...
can anyone help me??
-
December 4th, 2008, 09:40 AM
#2
Re: perl script to read from a file and put in a scalar variable
You could easily have searched the Google or any other engine for this topic.
http://www.perlfect.com/articles/perlfile.shtml
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|