Adding a comma to format localtime

[email protected] (Gregg O'Donnell)
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
All,
  I use this line of code:
  my $datetime = join ' ', (split ' ', localtime)[0,2,1,4,3];
   
  To create this result:
  Mon 9 Apr 2007 09:15:05
   
  How can I add a comma to this result to get:
  Mon, 9 Apr 2007 09:15:05
   
  Best and thanks,
  Gregg

 	 
---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.