Converting dell tags to svc codes - itty-bitty golf, anyone?

[email protected]
Newsgroups gmane.comp.lang.perl.fun
Message-ID <OF6C4C7336.4AD5548A-ON8625711D.0068AA32-8625711D.0069428C@uscmail.uscourts.gov>
Question came up elsewhere and via:
http://www.creativyst.com/Doc/Articles/HT/Dell/DellNumb.htm

we found Dell uses base 36 for its Service tags.  You need the decimal for 
the automated phone access so somebody came up w/:
map {$s+=(/\d/?$_:(ord()-55))*(36**$i++)} reverse(split(//,uc shift)); 
$s =~ s/(...)/$1-/g; print "$s\n"; 

as a rough stab.  But I thought I'd ask the first team for a 
cooler/shorter result, if anybody's interested.

Thanks.

a

Andy Bach, Sys. Mangler
Internet: [email protected] 
VOICE: (608) 261-5738  FAX 264-5932

"My rights are very dear to me. I served my country to defend them. And 
one of the things
I was defending was free speech. It's the First Amendment for a 
reason--not the last, not the middle.
The first." - Dwight Scarbrough, Fed. employee after DHS conflict over 
anti-war slogans on his truck
http://www.boiseweekly.com/gyrobase/Content?oid=oid%3A158729
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.