develooper Front page | perl.perl6.language | Postings from February 2005

Read array or hash value from file

Thread Next
From:
Thu Trieu
Date:
February 4, 2005 05:12
Subject:
Read array or hash value from file
Message ID:
20050204112419.85017.qmail@web41702.mail.yahoo.com
Does perl provides function to write array or hash data to file and be able to get them back to variable ?
This can be done easily from Vb6 for instance, please do not guide me by using Mysql, I mean exporting to a raw "txt" file.
          Somethings like below: (illustrate by php)
$a= array[1..10] = 1,2,3,4,5,6,7,8,9,10 
$name=fopen($filename);
@fwrite($name,$a);
fclose();...
------> afterthat
@fread($name,$b);
then we get
$b= 1,2,3,4,5,6,7,8,9,10
 
Thank,
Trieu


		
---------------------------------
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About