RE: Sorting mixed alphanumerics

2009-10-14 Thread Hall, Scott
-Original Message- From: Rick Triplett [mailto:r...@reason.net] Sent: Tuesday, October 13, 2009 12:09 PM To: Perl Beginners Subject: Sorting mixed alphanumerics I need to sort the keys in a hash. The keys are the question number and the values are the student's answer. A numeric sort

RE: generating a wordlist from an array of arrays

2005-09-29 Thread Hall, Scott
Mark, I like to use glob for such tasks. perldoc -f glob perldoc File::Glob bash-2.05b$ perl -le 'print for glob ({a,b}{c}{d,e,f})' acd ace acf bcd bce bcf Regards, Scott PS: I apologize for the top post. -Original Message- From: mark berger [mailto:[EMAIL PROTECTED] Sent:

RE: convert UNIX timestamp

2003-10-01 Thread Hall, Scott
Mickalo, perldoc -f localtime perldoc -f gmtime perl -e 'print scalar localtime (1064616515), \n' Fri Sep 26 18:48:35 2003 Scott -Original Message- From: Mike Blezien [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 10:08 AM To: [EMAIL PROTECTED] Subject: convert UNIX

RE: Regex and Email address.

2003-08-14 Thread Hall, Scott
Regexes are always more fun :) How else can you write a program with almost no letters. $email =~ s/(?[EMAIL PROTECTED]).*$/.../; perldoc perlre search for 'look-behind' Scott -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 10:36 PM

RE: Regex and Email address.

2003-08-14 Thread Hall, Scott
Comments?? Who needs comments? My code is 'self-documenting' LOL Scott PS: The regex engine is your friend. -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 8:08 PM To: Hall, Scott Cc: [EMAIL PROTECTED] Subject: Re: Regex and Email

RE: Another Regex question.

2003-07-23 Thread Hall, Scott
Sara, You can use ucfirst. $TS =~ s/(\w+)/ucfirst lc $1/ge; Scott -Original Message- From: Sara [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 12:59 PM To: org Subject: Another Regex question. $TS = THIS INPUT IS IN ALL CAPS; $TS_cont = lc $TS; $TS now prints out this