Adding a comma to format localtime

2007-04-09 Thread Gregg O'Donnell
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

Re: Regex and Email address.

2003-08-06 Thread gregg
I'm not clear on what you're trying to do. I recommend reading "Mastering Regular Expressions" by O'Reilly press. http://www.oreilly.com/catalog/regex/ I am currently reading it. I am not associated with O'Reilly press, I assure you. ;-) Gregg Allen Blessed ar

Re: Mail::Send question

2003-08-02 Thread gregg
Perl Sendmail module: http://search.cpan.org/dist/Mail-Sendmail/Sendmail.pm It will run on any platform. After all, if I can understand it, anybody can. Gregg Allen http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To uns

Re: Net::FTP

2003-07-11 Thread Gregg R . Allen
If you don't mind escaping to the shell, this is how I get a list of files I want to ftp. #This returns a list of files to be ftp'ed my $files = `ls`; #turn the files variable into an array of file names. my @ftpfiles = split(/\n/ , $files); Sincerely, Gregg R. Allen I.T. Specialist