Hi, @array=(1,2,3,4,5); open(FH,"> path to yourfile") or die can't open the file $!"; print FH @array; close FH;
----- Original Message ----- From: "Irfan J Sayed" <[EMAIL PROTECTED]>
To: <beginners@perl.org> Sent: Monday, April 17, 2006 4:37 PM Subject: redirecting array to file
Hi, Can anybody please tell me how to redirect / write the contents of array to the file Regards Irfan Sayed
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>