-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
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:
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
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
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
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